<!-- 博客 - 页面布局 > 上中下 -->



<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=dark>
<!-- 博客 - 导航栏上方 -->


<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/fluid.png">
  <link rel="icon" href="/blog/img/icon/dw.png">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="author" content="Memory">
  <meta name="keywords" content="">

  
    <meta name="description" content="🍦 从零开始，带你快速入门，生成精美文档站点">
<meta property="og:type" content="article">
<meta property="og:title" content="大道至简：快速搭建博客与文档站点的终极指南2.0">
<meta property="og:url" content="https://test.atomgit.net/blog/2023/06/24/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%972.0/index.html">
<meta property="og:site_name" content="Memory&#39;s blog">
<meta property="og:description" content="🍦 从零开始，带你快速入门，生成精美文档站点">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://test.atomgit.net/blog/img/artical/cloud20240729.jpg">
<meta property="article:published_time" content="2023-06-24T04:59:24.000Z">
<meta property="article:modified_time" content="2025-12-02T05:47:37.000Z">
<meta property="article:author" content="Memory">
<meta property="article:tag" content="经验">
<meta property="article:tag" content="云服务器">
<meta property="article:tag" content="Blog">
<meta property="article:tag" content="文档站点">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://test.atomgit.net/blog/img/artical/cloud20240729.jpg">
  
  
  
  <title>大道至简：快速搭建博客与文档站点的终极指南2.0 - Memory&#39;s blog</title>

  <link  rel="stylesheet" href="https://lib.baomitu.com/twitter-bootstrap/4.6.1/css/bootstrap.min.css" />



  <link  rel="stylesheet" href="https://lib.baomitu.com/github-markdown-css/4.0.0/github-markdown.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/hint.css/2.7.0/hint.min.css" />

  <link  rel="stylesheet" href="https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->
<!-- Do not modify the link that theme dependent icons -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_hj8rtnfg7um.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_lbnruvf0jn.css">


<link  rel="stylesheet" href="/blog/css/main.css" />


  <link id="highlight-css" rel="stylesheet" href="/blog/css/highlight.css" />
  
    <link id="highlight-css-dark" rel="stylesheet" href="/blog/css/highlight-dark.css" />
  



  
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/aplayer/dist/APlayer.min.css">



  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    Fluid.ctx = Object.assign({}, Fluid.ctx)
    var CONFIG = {"hostname":"test.atomgit.net","root":"/blog/","version":"1.9.4","typing":{"enable":true,"typeSpeed":100,"cursorChar":"_","loop":false,"scope":[]},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"left","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"code_language":{"enable":true,"default":"TEXT"},"copy_btn":true,"image_caption":{"enable":true},"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"placement":"right","headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":false,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":true,"follow_dnt":true,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","server_url":"https://t1huhh9k.lc-cn-n1-shared.com","path":"window.location.pathname","ignore_local":false}},"search_path":"/blog/local-search.xml"};

    if (CONFIG.web_analytics.follow_dnt) {
      var dntVal = navigator.doNotTrack || window.doNotTrack || navigator.msDoNotTrack;
      Fluid.ctx.dnt = dntVal && (dntVal.startsWith('1') || dntVal.startsWith('yes') || dntVal.startsWith('on'));
    }
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
  

  

  

  

  

  

  

  



  
<meta name="generator" content="Hexo 5.4.2"></head>

<body>
  

  <header>
    <!-- 博客 - 导航栏上方 -->


<div class="header-inner" style="height: 100vh">
  <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand" href="/blog/">
      <strong>Memory&#39;s blog</strong>
    </a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                <span>首页</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                <span>归档</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                <span>分类</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                <span>标签</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                <span>关于</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/links/">
                <i class="iconfont icon-link-fill"></i>
                <span>友链</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/playlist/">
                <i class="iconfont icon-music"></i>
                <span>音乐</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/Memos/">
                <i class="iconfont icon-comment "></i>
                <span>说说</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/App/">
                <i class="iconfont icon-mobile"></i>
                <span>咫尺</span>
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item dropdown">
              <a class="nav-link dropdown-toggle" target="_self" href="javascript:;" role="button"
                 data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="iconfont icon-books"></i>
                <span>青简</span>
              </a>
              <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                
                  
                  
                  
                  <a class="dropdown-item" target="_blank" rel="noopener" href="http://47.93.135.62:5230/explore">
                    <i class="iconfont icon-images"></i>
                    <span>碎念微光</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-bug"></i>
                    <span>匠册详析</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-xbox-fill"></i>
                    <span>窗景新编</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-steam"></i>
                    <span>戏码幕后</span>
                  </a>
                
                  
                  
                  
                  <a class="dropdown-item" href="/blog/New/">
                    <i class="iconfont icon-map"></i>
                    <span>他山随拾</span>
                  </a>
                
              </div>
            </li>
          
        
        
            <li class="nav-item" id="search-btn">
                <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalNotice" aria-label="Search">
                    <i class="iconfont icon-book"></i>
                    <span>公告</span>
                </a>
            </li>
            
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" href="javascript:;" data-toggle="modal" data-target="#modalSearch" aria-label="Search">
              <i class="iconfont icon-search"></i>
            </a>
          </li>
          
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self" href="javascript:;" aria-label="Color Toggle">
              <i class="iconfont icon-dark" id="color-toggle-icon"></i>
            </a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>
 
<div id="banner" class="banner" parallax=true
     style="background: url('/blog/img/artical/cloud20240729.jpg') no-repeat center center; background-size: cover;">
  <div class="full-bg-img">

    <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
      <div class="banner-text text-center fade-in-up">

        <div class="h2">
          
            <span id="subtitle" data-typed-text="大道至简：快速搭建博客与文档站点的终极指南2.0"></span>
          
        </div>


        
          <!-- 文章页面 - 顶部信息 -->

<div class="mt-3">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-author" aria-hidden="true"></i>
    Memory
  </span>
   
  <span class="post-meta">
    <i class="iconfont icon-date-fill" aria-hidden="true"></i>
    <time datetime="2023-06-24 12:59" pubdate>
      2023年6月24日 下午
    </time>
  </span>
  
</div>

<div class="mt-1">
  
  <span class="post-meta mr-2">
    <i class="iconfont icon-chart"></i>
     32k 字 
  </span>
   
  <span class="post-meta mr-2">
    <i class="iconfont icon-clock-fill"></i>
       80 分钟 
  </span>
     
  <span
    id="leancloud-page-views-container"
    class="post-meta"
    style="display: none"
  >
    <i class="iconfont icon-eye" aria-hidden="true"></i>
    <span id="leancloud-page-views"></span> 次
  </span>

    
</div>


        

        <!-- 添加网站运行时间 -->
        <div class="footer-content" style="background-color: transparent;">
          <div>
            <span id="timeDate"></span>
            <span id="times"></span>
            <script>
            var now = new Date();
            function createtime(){
                var grt= new Date("03/07/2023 00:00:00");//此处修改你的建站时间或者网站上线时间
                now.setTime(now.getTime()+250);
                days = (now - grt ) / 1000 / 60 / 60 / 24;
                dnum = Math.floor(days);
                hours = (now - grt ) / 1000 / 60 / 60 - (24 * dnum);
                hnum = Math.floor(hours);
                if(String(hnum).length ==1 ){
                    hnum = "0" + hnum;
                }
                minutes = (now - grt ) / 1000 /60 - (24 * 60 * dnum) - (60 * hnum);
                mnum = Math.floor(minutes);
                if(String(mnum).length ==1 ){
                          mnum = "0" + mnum;
                }
                seconds = (now - grt ) / 1000 - (24 * 60 * 60 * dnum) - (60 * 60 * hnum) - (60 * mnum);
                snum = Math.round(seconds);
                if(String(snum).length ==1 ){
                          snum = "0" + snum;
                }
                document.getElementById("timeDate").innerHTML = "🚀 &nbsp"+dnum+"&nbsp天";  //此次自定义显示内容
                document.getElementById("times").innerHTML = hnum + "&nbsp小时&nbsp" + mnum + "&nbsp分&nbsp" + snum + "&nbsp秒";
            }  

            if (!window.location.href.includes('/20')) {  
            setInterval("createtime()", 250);  // 只有当URL不包含'specific-page'时，才调用createtime  
            }//此次自定义显示内容
            </script>
          </div>
        </div>

      </div>
      
        <div class="scroll-down-bar">
          <i class="iconfont icon-arrowdown"></i>
        </div>
      
    </div>
  </div>
</div>

</div>

  </header>

  <main>
    
      <!-- 文章页  -->


<div class="container-fluid nopadding-x">

  <div class="row nomargin-x">
    <div class="side-col d-none d-lg-block col-lg-2">
      
  <aside class="sidebar category-bar" style="margin-right: -1rem">
    <!-- 文章页面 - 左边栏所属分类 -->
  

<!-- 文章页 - 文章分类 -->





<div class="category-list">
  
  
    
    
    
    <div class="category row nomargin-x">
      <a class="category-item 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="个人博客"
        id="heading-9cfd28a41ea3ebc9060caef8d71248d6" role="tab" data-toggle="collapse" href="#collapse-9cfd28a41ea3ebc9060caef8d71248d6"
        aria-expanded="true"
      >
        个人博客
        <span class="list-group-count">(4)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-9cfd28a41ea3ebc9060caef8d71248d6"
           role="tabpanel" aria-labelledby="heading-9cfd28a41ea3ebc9060caef8d71248d6">
        
        
          
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2023/03/23/%E6%96%87%E5%BE%84%E9%80%9A%E5%B9%BD%EF%BC%9A%E6%AC%A2%E8%BF%8E%E8%B5%B0%E8%BF%9B%E6%88%91%E7%9A%84%E6%96%87%E5%AD%97%E4%B8%96%E7%95%8C/" title="文径通幽：欢迎走进我的文字世界"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">文径通幽：欢迎走进我的文字世界</span>
        </a>
      
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="代码锋芒"
        id="heading-843238cb7c4b39b52e95311733ff6da6" role="tab" data-toggle="collapse" href="#collapse-843238cb7c4b39b52e95311733ff6da6"
        aria-expanded="true"
      >
        代码锋芒
        <span class="list-group-count">(3)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-843238cb7c4b39b52e95311733ff6da6"
           role="tabpanel" aria-labelledby="heading-843238cb7c4b39b52e95311733ff6da6">
        
        
          
          
  <div class="category-post-list">
    
    
  </div>

          
  
    
    
    
    <div class="category-sub row nomargin-x">
      <a class="category-subitem 
          list-group-item category-item-action col-10 col-md-11 col-xm-11" title="部署之道"
        id="heading-36acf247b1a64f4bbe423776a392cfde" role="tab" data-toggle="collapse" href="#collapse-36acf247b1a64f4bbe423776a392cfde"
        aria-expanded="true"
      >
        部署之道
        <span class="list-group-count">(3)</span>
        <i class="iconfont icon-arrowright"></i>
      </a>
      
      <div class="category-collapse collapse show" id="collapse-36acf247b1a64f4bbe423776a392cfde"
           role="tabpanel" aria-labelledby="heading-36acf247b1a64f4bbe423776a392cfde">
        
        
          
  <div class="category-post-list">
    
    
      
      
        <a href="/blog/2023/05/27/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%971.0/" title="大道至简：快速搭建博客与文档站点的终极指南1.0"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南1.0</span>
        </a>
      
    
      
      
        <a href="/blog/2023/06/24/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%972.0/" title="大道至简：快速搭建博客与文档站点的终极指南2.0"
           class="list-group-item list-group-item-action
           active">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南2.0</span>
        </a>
      
    
      
      
        <a href="/blog/2023/06/26/%E5%A4%A7%E9%81%93%E8%87%B3%E7%AE%80%EF%BC%9A%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E5%8D%9A%E5%AE%A2%E4%B8%8E%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9%E7%9A%84%E7%BB%88%E6%9E%81%E6%8C%87%E5%8D%973.0/" title="大道至简：快速搭建博客与文档站点的终极指南3.0"
           class="list-group-item list-group-item-action
           ">
          <span class="category-post">大道至简：快速搭建博客与文档站点的终极指南3.0</span>
        </a>
      
    
  </div>

        
      </div>
    </div>
  
        
      </div>
    </div>
  
        
      </div>
    </div>
  
</div>

  </aside>


    </div>

    <div class="col-lg-8 nopadding-x-md">
      <div class="container nopadding-x-md" id="board-ctn">
        <div id="board">
          <article class="post-content mx-auto">
            <!-- SEO header -->
            <h1 style="display: none">大道至简：快速搭建博客与文档站点的终极指南2.0</h1>
            
              <p class="note note-success">
                
                  
                    本文最后更新于：6 天前
                  
                
              </p>
            
            
              <div class="markdown-body">
                
                <h1 id="破冰"><a href="#破冰" class="headerlink" title="破冰"></a>破冰</h1><blockquote>
<p>2023 年 6 月 24 日</p>
</blockquote>
<p>对 Gitee 进行简介，介绍其作为开源托管平台的优势和受欢迎程度。</p>
<p>提出使用 Gitee 来托管静态网站的需求和好处。</p>
<blockquote>
<p>2024 年 7 月 15 日</p>
</blockquote>
<p>🥣 推荐阅读：</p>
<p><a target="_blank" rel="noopener" href="https://docs.halo.run/category/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97/">安装指南 | Halo 文档</a></p>
<p><a target="_blank" rel="noopener" href="https://gitee.com/yadong.zhang/DBlog/tree/master#%E6%8A%80%E6%9C%AF%E6%A0%88">yadong.zhang/OneBlog - 码云 - 开源中国 (gitee.com)</a></p>
<blockquote>
<p>2025 年 1 月 9 日</p>
</blockquote>
<p>时间过的真快，就连最近实践过的云服务器部署 Hexo 博客教程，都已经是半年前的事情了。</p>
<p>博客建站六百七十四天。</p>
<p>最开始只想要快速搭建一个博客站点，简单记录下编程学习之路上的遇到的问题以及解决经验，平凡的日子下能有点滴记录也是不错的。</p>
<p>万般不会想到它到如今已经成为我生命的一部分。</p>
<p>搭建个人博客本身不需要花费太多精力，无非是需要了解的前置知识会有些复杂，但要聊起来的话也挺容易。</p>
<p>前年初次搭建完成个人博客后，整整过去了半年多，我才真正着手记录自己的心灵生活。</p>
<p>那段时间里我也会尝试别的博客主题，玩玩看还有那些有趣的效果，哪些博客风格更加适合我。</p>
<p>兜兜转转了一圈，果然还是最初选择的博客风格最适合我，个人博客在后来一年多时间里的优化中也更加精美和完善。</p>
<p>前段时间云服务器资源过期被释放了，也许将来我还会尝试使用云服务器部署 Hexo 博客，到时候操作难度就会比第一次减小很多。</p>
<p>不论如何搭建和完善，个人博客能够保持大气美观是首要的，而其中可输出的博客内容和涵盖范畴则是最精华的。</p>
<p>写下去，续写自己的故事。</p>
<h1 id="思维碰撞"><a href="#思维碰撞" class="headerlink" title="思维碰撞"></a>思维碰撞</h1><h2 id="Hope"><a href="#Hope" class="headerlink" title="Hope"></a>Hope</h2><blockquote>
<p>2025 年 1 月 11 日</p>
</blockquote>
<p>今天总算也要开始正式搭建文档站点了。</p>
<p>前年冬天到去年年前的时间里，为了完善简历内容并保证真实性，我选择从零开始学习文档站点搭建，先后制作了三个完美的项目文档。</p>
<p>近段时间又需要着手打造自己的第一个完备的文档站点，收录个人博客网站中的所有技术文档，并整合目前所有已经部署成功的静态站点。</p>
<p>还是熟悉的主题：<a target="_blank" rel="noopener" href="https://vuepress-theme-hope-docs-demo.netlify.app/zh/">项目主页 | 文档演示 (vuepress-theme-hope-docs-demo.netlify.app)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20250111174057512.png" alt="image-20250111174057512"></p>
<figure class="highlight typescript"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br></pre></td><td class="code"><pre><code class="hljs typescript"><span class="hljs-keyword">import</span> &#123; defineUserConfig &#125; <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;vuepress&quot;</span>;<br><span class="hljs-keyword">import</span> &#123; hopeTheme &#125; <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;vuepress-theme-hope&quot;</span>;<br><span class="hljs-keyword">import</span> theme <span class="hljs-keyword">from</span> <span class="hljs-string">&quot;./theme.js&quot;</span>;<br><br><span class="hljs-keyword">export</span> <span class="hljs-keyword">default</span> <span class="hljs-title function_">defineUserConfig</span>(&#123;<br>  <span class="hljs-comment">// base: &quot;/&quot;,</span><br>  <span class="hljs-comment">// lang: &quot;zh-CN&quot;,</span><br>  <span class="hljs-comment">// title: &quot;MemorySearch 忆搜阁&quot;,</span><br>  <span class="hljs-comment">// description: &quot;一个强大的搜索引擎，一个内容丰富的聚合搜索中台。&quot;,</span><br>  <span class="hljs-comment">// theme,</span><br>  <span class="hljs-attr">theme</span>: <span class="hljs-title function_">hopeTheme</span>(&#123;<br>    <span class="hljs-attr">navbar</span>: [<span class="hljs-string">&quot;/guide/README.md&quot;</span>, <span class="hljs-string">&quot;/config/README.md&quot;</span>, <span class="hljs-string">&quot;/faq.md&quot;</span>],<br>  &#125;),<br><br>  <span class="hljs-comment">// Enable it with pwa</span><br>  <span class="hljs-comment">// shouldPrefetch: false,</span><br>&#125;);<br></code></pre></td></tr></table></figure>

<h2 id="云服务器部署-Hexo-博客"><a href="#云服务器部署-Hexo-博客" class="headerlink" title="云服务器部署 Hexo 博客"></a>云服务器部署 Hexo 博客</h2><h3 id="尝试，经验"><a href="#尝试，经验" class="headerlink" title="尝试，经验"></a>尝试，经验</h3><p>以下是我从五月初到六月初这一个月以来，尝试云服务器部署 Hexo 博客的实操经历，仅供参考。</p>
<p>如果需要学习详细的博客部署全流程，可以跳过这部分内容，直接看最全最细的<strong>部署流程</strong></p>
<blockquote>
<p>2024 年 5 月 7 日</p>
</blockquote>
<p>上上周六下午突然发现 Gitee Pages 失效了，等了快半个月官方仍没有发任何公告或通知。今天看到消息，估计官方计划关闭个人账户下的 Gitee Pages 服务，只保留企业版的。</p>
<p>我是不能坐以待毙了，赶紧学一学如何部署 Hexo 博客网站到云服务器上，正好去年十一月份买的阿里云服务器闲置着没地方用呢。</p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/everwin/articles/17629280.html">Hexo 博客搭建并发布到云服务器 - 我如云影君如梦 - 博客园 (cnblogs.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/cpJa3/p/17300305.html">在云服务器上搭建 hexo 博客（亲测可用） - 菲尼克斯交警 - 博客园 (cnblogs.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jianshu.com/p/c7ef460c5ca7">Hexo 部署到云服务器 - 简书 (jianshu.com)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240507175017346.png" alt="image-20240507175017346"></p>
<p>Nginx 启动报错，卸载重新安装还是一样。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_72926030/article/details/134887455">Linux 上启动 Nginx 失败：Job for nginx.service failed because the control process exited with error code-CSDN 博客</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240507180743235.png" alt="image-20240507180743235"></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/dndjjdi/article/details/135015583">Linux 启动 nginx 失败_linux nginx 无法启动-CSDN 博客</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nginx -t	<span class="hljs-comment"># 查看Nginx 配置文件</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240507181321362.png" alt="image-20240507181321362"></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">kill</span> pid	<span class="hljs-comment"># 杀死一个进程</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240507181910116.png" alt="image-20240507181910116"></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/659665414">重启 nginx 报错：Job for nginx.service failed because the control process exited with error code. - 知乎 (zhihu.com)</a></p>
<p><strong>奇了怪了，端口未被占用，配置文件也无误，为什么还是启动不了呢，我越发觉得有意思起来了。</strong></p>
<p>诶？</p>
<p>突然显示服务器连接失败，我又重新远程登录进来：依次执行五步操作：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">systemctl status nginx	<span class="hljs-comment"># 查看 nginx 状态</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ps -ef | grep nginx	<span class="hljs-comment"># 查看nginx相关进程</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-built_in">kill</span> 400147	<span class="hljs-comment"># 杀死进程</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">nginx -t	<span class="hljs-comment"># 配置文件检验</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">systemctl start nginx	<span class="hljs-comment"># 启动nginx</span><br></code></pre></td></tr></table></figure>

<p><strong>执行完这五步，在此查看 Nginx 状态，发现竟然启动成功了。</strong></p>
<p><img src="http://blog.memory-life.xyz/image-20240507182535296.png" alt="image-20240507182535296"></p>
<p>有点奇怪，难道是这个服务器太久没用了，需要时间磨合嘛。不管怎么说，Nginx 起来了，今天晚上回去研究下怎么用云服务器部署<strong>个人博客网站。</strong></p>
<blockquote>
<p>2024 年 6 月 1 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_49000161/article/details/132415997">【一篇学会】Nginx 静态资源部署保姆级教程_nginx 部署静态资源-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/2363273">Nginx 静态资源服务的配置-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs ada">MIME 类型<br>MIME（多用途互联网邮件扩展类型）是一种标准化的方式，用于表示文档、文件或字节流的性质和格式。它在IETF RFC <span class="hljs-number">6838</span>中进行了定义和标准化，由互联网号码分配机构（IANA）负责跟踪所有官方MIME类型。MIME类型由两部分组成：类型（<span class="hljs-keyword">type</span>）和子类型（<span class="hljs-keyword">subtype</span>），它们之间用斜杠（/）分隔，不允许空格存在。MIME类型对大小写不敏感，但传统写法都是小写<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/m0_62231324/article/details/132524647">Nginx 配置文件详解-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://www.bilibili.com/video/BV1Ku411p73U/?spm_id_from=333.337.search-card.all.click&vd_source=4314e5bd742ea904c9675af8a6b4b07e">8 分钟用 Nginx 搭建一个自己的网站_哔哩哔哩_bilibili</a></p>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/WindSnowLi/p/16998206.html">Linux 使用 nginx 部署静态网页 - WindSnowLi - 博客园 (cnblogs.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://www.jarcheng.top/blog/knowledge/website/#nginx%E9%85%8D%E7%BD%AE">手把手教你搭建静态/博客网站 | 起凡 Code 闲聊 (jarcheng.top)</a></p>
<p>跟着网上的教程搞了一下午，就是部署不了静态页面，甚至连访问 Nginx 本身都好像有问题，搞不明白，实在是搞不明白。</p>
<p>不管怎么说，今晚我就死磕这个 Nginx 了，多少个晚上都像现在这样把它放过，所以到现在都没有学习完成过 Nginx。</p>
<blockquote>
<p>2024 年 6 月 2 日</p>
</blockquote>
<p>[root@iZ2ze4yceifsrmdejokfymZ ~]# nginx<br>nginx: [emerg] bind() to 0.0.0.0:7010 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7071 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7020 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7010 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7071 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7020 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7010 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7071 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7020 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7010 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7071 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7020 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7010 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:888 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7071 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7001 failed (98: Unknown error)<br>nginx: [emerg] bind() to 0.0.0.0:7020 failed (98: Unknown error)<br>nginx: [emerg] still could not bind()</p>
<p><img src="http://blog.memory-life.xyz/image-20240602182928144.png" alt="image-20240602182928144"></p>
<p>[Nginx 重启时提示”nginx: <a target="_blank" rel="noopener" href="https://www.8a.hk/index.php/news/content/2898.html">emerg] bind() to 0.0.0.0”解决方法 - 八艾云 (8a.hk)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240602185109255.png" alt="image-20240602185109255"></p>
<p><a target="_blank" rel="noopener" href="https://www.code-nav.cn/post/1652294765397454849#heading-7">极简 Nginx 学习 + 使用，点到为止 - 编程导航文章 (code-nav.cn)</a></p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br></pre></td><td class="code"><pre><code class="hljs bash">要查看当前用户是否是管理员（在Unix和Linux系统中通常指的是root用户，或在Windows系统中指的是具有管理员权限的用户），你可以使用不同的方法，具体取决于你使用的操作系统。<br><br>在Unix/Linux系统中：<br><br>查看当前用户名：<br>在终端中输入 <span class="hljs-built_in">whoami</span> 命令。如果输出是 root，那么你就是管理员。<br>查看用户ID：<br>输入 <span class="hljs-built_in">id</span> 命令。如果UID（用户ID）是0，那么你就是root用户。<br>查看/etc/passwd文件（需要root权限）：<br>你可以查看/etc/passwd文件，但通常需要root权限来查看完整的文件内容。使用<span class="hljs-built_in">cat</span> /etc/passwd命令，并查找以root:开头的行。<br>在Windows系统中：<br><br>打开命令提示符：<br>按下Win + R，输入cmd，然后按下Enter键。<br>检查用户账户控制（UAC）提示：<br>当你尝试执行需要管理员权限的任务时，Windows通常会显示一个UAC提示。如果你没有看到这些提示，那么你可能不是以管理员身份登录的。<br>检查用户账户：<br>在“控制面板”中，你可以查看用户账户并检查你的账户是否有管理员权限。<br>使用net user命令（在命令提示符中）：<br>输入net user命令并查看输出。找到你的用户名，并检查它是否列出了管理员组（例如，“Administrators”组）。<br>运行<span class="hljs-built_in">whoami</span> /groups（在命令提示符中）：<br>这个命令将列出你当前用户所属的所有组。如果你看到“S-1-5-32-544”（管理员组的SID），那么你就是管理员。<br>使用PowerShell：<br>在PowerShell中，你可以使用[System.Security.Principal.WindowsIdentity]::GetCurrent().Groups命令来查看当前用户所属的组。然后，你可以检查输出中是否包含管理员组。<br>请注意，成为管理员用户（特别是在Unix/Linux中的root用户）具有极大的权限，可以执行系统范围内的更改。因此，请务必谨慎行事，并在需要时始终考虑使用具有较低权限的用户账户。<br></code></pre></td></tr></table></figure>

<p>netstat -tulnp | grep 7010</p>
<p>我已经尝试了所有方法，查看冲突端口号、关闭防火墙，修改执行用户，更改文件目录权限，根本部署不了静态页面</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/2301_79099416/article/details/139116845">3 分钟搞懂阿里云服务器安装 Nginx 并配置静态访问页面_阿里云服务器如何安装 nginx-CSDN 博客</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240602213424584.png" alt="image-20240602213424584"></p>
<p>[nginx: <a target="_blank" rel="noopener" href="https://blog.csdn.net/gphjl/article/details/42104639">error] invalid PID number “” in “/usr/local/webserver/nginx/logs/nginx.pid”-CSDN 博客</a></p>
<figure class="highlight awk"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs awk">nginx -c <span class="hljs-regexp">/www/</span>server<span class="hljs-regexp">/nginx/</span>conf/nginx.conf<br></code></pre></td></tr></table></figure>

<p>搞不定，一夜回到解放前。</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/underworld33/article/details/129140664">Nginx 部署与静态 html_nginx 部署 html-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/debimeng/article/details/89005546">【Linux 报错】登陆 mysql 用户报错 This account is currently not available._mysql:x:1001:-CSDN 博客</a></p>
<blockquote>
<p>2024 年 6 月 3 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/Keep__Me/article/details/137924903">Linux 实现 Nginx 的安装与部署并实现 html 静态资源访问_linux nginx html-CSDN 博客</a></p>
<figure class="highlight ini"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br></pre></td><td class="code"><pre><code class="hljs ini"><span class="hljs-section">[nginx-stable]</span><br><span class="hljs-attr">name</span>=nginx stable repo<br><span class="hljs-attr">baseurl</span>=http://nginx.org/packages/centos/<span class="hljs-number">7</span>/<span class="hljs-variable">$basearch</span>/<br><span class="hljs-attr">gpgcheck</span>=<span class="hljs-number">1</span><br><span class="hljs-attr">enabled</span>=<span class="hljs-number">1</span><br><span class="hljs-attr">gpgkey</span>=https://nginx.org/keys/nginx_signing.key<br><span class="hljs-attr">module_hotfixes</span>=<span class="hljs-literal">true</span><br><br><span class="hljs-section">[nginx-mainline]</span><br><span class="hljs-attr">name</span>=nginx mainline repo<br><span class="hljs-attr">baseurl</span>=http://nginx.org/packages/mainline/centos/<span class="hljs-number">7</span>/<span class="hljs-variable">$basearch</span>/<br><span class="hljs-attr">gpgcheck</span>=<span class="hljs-number">1</span><br><span class="hljs-attr">enabled</span>=<span class="hljs-number">0</span><br><span class="hljs-attr">gpgkey</span>=https://nginx.org/keys/nginx_signing.key<br><span class="hljs-attr">module_hotfixes</span>=<span class="hljs-literal">true</span><br></code></pre></td></tr></table></figure>

<figure class="highlight ada"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs ada">sudo yum clean <span class="hljs-keyword">all</span><br>sudo yum makecache<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240603080013103.png" alt="image-20240603080013103"></p>
<figure class="highlight gradle"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs gradle"><span class="hljs-keyword">grep</span> -r <span class="hljs-keyword">exclude</span> <span class="hljs-regexp">/etc/yum</span>.conf <span class="hljs-regexp">/etc/yum</span>.repos.d/<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240603075634506.png" alt="image-20240603075634506"></p>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs cmake">sudo yum <span class="hljs-keyword">install</span> nginx<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240603080124927.png" alt="image-20240603080124927"></p>
<figure class="highlight powershell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs powershell">systemctl <span class="hljs-built_in">start</span> nginx  <span class="hljs-comment">#启动nginx服务器</span><br><span class="hljs-built_in">ps</span> <span class="hljs-literal">-aux</span> | grep nginx  <span class="hljs-comment">#查看nginx进程</span><br></code></pre></td></tr></table></figure>

<figure class="highlight maxima"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs maxima">systemctl <span class="hljs-built_in">restart</span> nginx<br>systemctl <span class="hljs-built_in">status</span> nginx<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240603080537255.png" alt="image-20240603080537255"></p>
<figure class="highlight vim"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs vim"><span class="hljs-keyword">find</span> / -name nginx.<span class="hljs-keyword">conf</span><br><br><span class="hljs-keyword">cd</span> ..<br><span class="hljs-keyword">find</span> -name nginx.<span class="hljs-keyword">conf</span><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240603081030466.png" alt="image-20240603081030466"></p>
<figure class="highlight nginx"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br></pre></td><td class="code"><pre><code class="hljs nginx"><span class="hljs-section">server</span> &#123;<br>    <span class="hljs-attribute">listen</span>       <span class="hljs-number">80</span>;<br>    <span class="hljs-attribute">server_name</span>  localhost;<br><br>    <span class="hljs-comment">#access_log  /var/log/nginx/host.access.log  main;</span><br><br>    <span class="hljs-attribute">autoindex</span> <span class="hljs-literal">on</span>;<br>    <span class="hljs-section">location</span> / &#123;<br>        <span class="hljs-attribute">root</span>   /usr/share/nginx/html;<br>        <span class="hljs-attribute">index</span>  index.html index.htm;<br>    &#125;<br><br>    <span class="hljs-comment">#error_page  404              /404.html;</span><br><br>    <span class="hljs-comment"># redirect server error pages to the static page /50x.html</span><br>    <span class="hljs-comment">#</span><br>    <span class="hljs-attribute">error_page</span>   <span class="hljs-number">500</span> <span class="hljs-number">502</span> <span class="hljs-number">503</span> <span class="hljs-number">504</span>  /50x.html;<br>    <span class="hljs-section">location</span> = /50x.html &#123;<br>        <span class="hljs-attribute">root</span>   /usr/share/nginx/html;<br>    &#125;<br><br>    <span class="hljs-comment"># proxy the PHP scripts to Apache listening on 127.0.0.1:80</span><br>    <span class="hljs-comment">#</span><br>    <span class="hljs-comment">#location ~ \.php$ &#123;</span><br>    <span class="hljs-comment">#    proxy_pass   http://127.0.0.1;</span><br>    <span class="hljs-comment">#&#125;</span><br><br>    <span class="hljs-comment"># pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000</span><br>    <span class="hljs-comment">#</span><br>    <span class="hljs-comment">#location ~ \.php$ &#123;</span><br>    <span class="hljs-comment">#    root           html;</span><br>    <span class="hljs-comment">#    fastcgi_pass   127.0.0.1:9000;</span><br>    <span class="hljs-comment">#    fastcgi_index  index.php;</span><br>    <span class="hljs-comment">#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;</span><br>    <span class="hljs-comment">#    include        fastcgi_params;</span><br>    <span class="hljs-comment">#&#125;</span><br><br>    <span class="hljs-comment"># deny access to .htaccess files, if Apache&#x27;s document root</span><br>    <span class="hljs-comment"># concurs with nginx&#x27;s one</span><br>    <span class="hljs-comment">#</span><br>    <span class="hljs-comment">#location ~ /\.ht &#123;</span><br>    <span class="hljs-comment">#    deny  all;</span><br>    <span class="hljs-comment">#&#125;</span><br>&#125;<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/nicolelili1/article/details/103381658">nginx 服务器搭建好但是浏览器却无法访问原因排查_nginx 配置好了 网站还是访问不了-CSDN 博客</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240603084009334.png" alt="image-20240603084009334"></p>
<p>这几天里报错最恶心的还是这条：</p>
<figure class="highlight vbnet"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs vbnet"><span class="hljs-symbol">nginx:</span> [emerg] bind() <span class="hljs-keyword">to</span> <span class="hljs-number">0.0</span>.<span class="hljs-number">0.0</span>:<span class="hljs-number">7010</span> failed (<span class="hljs-number">98</span>: Unknown <span class="hljs-keyword">error</span>)<br></code></pre></td></tr></table></figure>

<p>最后是在宝塔面板卸载重装以后才解决的，现在也不知道什么原因。</p>
<p><strong>还是很有收获的，学到了许多其他新知识。</strong></p>
<blockquote>
<p>2024 年 6 月 4 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://www.cnblogs.com/tt212/p/17684371.html">linux 怎么快速卸载并安装 node 环境 - Jun_ct - 博客园 (cnblogs.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_37450502/article/details/130959110">yum、apt-get、wget 的区别_yum wget-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/2045120">wget、yum、rpm、apt-get 区别「建议收藏」-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/angle_chen123/article/details/120675472">Linux curl 命令最全详解-CSDN 博客</a></p>
<p>云服务器部署静态博客站点，搞了一上午，代码推送不上去，Nginx 也起不来了。</p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/381967653">运维排查篇 | 访问 nginx 出现 403 错误 - 知乎 (zhihu.com)</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240604110147986.png" alt="image-20240604110147986"></p>
<p><img src="http://blog.memory-life.xyz/image-20240604110649330.png" alt="image-20240604110649330"></p>
<p>过了一个小时再尝试，静态代码文件就能推送上去了。杀死已经启动的 Nginx 进程，也能成功启动 Nginx 了。</p>
<p>部署成功：<a target="_blank" rel="noopener" href="http://182.92.203.240:4000/">Memory’s blog</a></p>
<h3 id="一条龙服务"><a href="#一条龙服务" class="headerlink" title="一条龙服务"></a>一条龙服务</h3><blockquote>
<p>2024 年 6 月 4 日</p>
</blockquote>
<ol>
<li>本地环境准备（安装 Node、Git 和 Hexo）：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/cheyaoyao/p/17836522.html">使用 Hexo 搭建个人博客并部署到云服务器 - Cheyaoyao - 博客园 (cnblogs.com)</a></li>
<li>服务端环境准备（购买云服务器、Nginx 环境配置、Node 环境配置、Git 环境配置）：<ul>
<li><a target="_blank" rel="noopener" href="https://www.cnblogs.com/cheyaoyao/p/17836522.html">使用 Hexo 搭建个人博客并部署到云服务器 - Cheyaoyao - 博客园 (cnblogs.com)</a></li>
<li><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/646239152">服务器——Nginx 安装及静态配置、部署 - 知乎 (zhihu.com)</a></li>
<li><a target="_blank" rel="noopener" href="https://blog.csdn.net/nicolelili1/article/details/103381658">nginx 服务器搭建好但是浏览器却无法访问原因排查_nginx 配置好了 网站还是访问不了-CSDN 博客</a></li>
<li><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/381967653">运维排查篇 | 访问 nginx 出现 403 错误 - 知乎 (zhihu.com)</a></li>
</ul>
</li>
<li>部署（部署 Hexo 博客到服务端 Git 仓库）：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/cheyaoyao/p/17836522.html">使用 Hexo 搭建个人博客并部署到云服务器 - Cheyaoyao - 博客园 (cnblogs.com)</a></li>
</ol>
<p>Node 环境的安装直接放在这里，没有找到合适的博客：</p>
<p>linux 安装 nodejs yum</p>
<p>在 Linux 系统中，您可以使用 Yum 包管理器来安装 Node.js。以下是一个基本的步骤和示例代码，用于通过 Yum 安装 Node.js：</p>
<ol>
<li>首先，您需要确保您的系统中已经安装了 Node.js 的官方 Yum 仓库。如果尚未安装，您可以通过运行以下命令来添加 Node.js 的仓库：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240604085311073.png" alt="image-20240604085311073"></p>
<p>这个命令会将 Node.js 14.x 的仓库添加到您的系统中。如果您想安装其他版本的 Node.js，只需将<code>setup_14.x</code>中的数字更改为所需的 Node.js 版本即可。</p>
<ol>
<li>接下来，您可以使用 Yum 安装 Node.js：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">sudo yum install -y nodejs<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240604085407699.png" alt="image-20240604085407699"></p>
<p>这个命令会从刚才添加的 Node.js 仓库中安装 Node.js。</p>
<ol>
<li>安装完成后，您可以检查 Node.js 的版本确保安装成功：</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">node --version<br></code></pre></td></tr></table></figure>

<p>请注意，上述命令中的 URL 和版本号可能会随着 Node.js 版本更新而变化，请参照 Node.js 官方文档或者 NodeSource 提供的最新安装脚本。</p>
<h2 id="Github-部署-Hexo-博客"><a href="#Github-部署-Hexo-博客" class="headerlink" title="Github 部署 Hexo 博客"></a>Github 部署 Hexo 博客</h2><blockquote>
<p>2025 年 12 月 2 日</p>
</blockquote>
<p>一年到头一晃都到年底了，上周周末看到 AtomGit 发布公告说跟 GitCode 合并了，这下好妈的之前部署在 AtomGit Pages 服务上的静态网站全没了，成功部署了一年半的个人博客也未能幸免。</p>
<p>还得继续找找其他替代品，转悠两年多以后还是回到了原点，果然当时最没看好的才是最好用的。</p>
<p><a target="_blank" rel="noopener" href="https://deng-2022.github.io/blog_1/">回忆如初</a></p>
<p><a target="_blank" rel="noopener" href="https://deng-2022.github.io/">Memory’s blog</a></p>
<p>以前部署成功的页面，到现在还能访问，相当稳定，就是网站国内访问速度堪忧，管他呢能用就行。</p>
<p><a target="_blank" rel="noopener" href="https://deng-2022.github.io/Memory/">回忆如初</a></p>
<p>当时部署在了那个仓库来着。</p>
<p><a target="_blank" rel="noopener" href="https://www.zhihu.com/question/462149457/answer/3100367987">(99+ 封私信 / 82 条消息) 什么是github-page，为啥好多人在这个上面部署网站，在这上面搭建是不需要自己有后台服务器吗？ - 知乎</a></p>
<p>找着了，是这个仓库：<a target="_blank" rel="noopener" href="https://github.com/deng-2022/deng-2022.github.io">deng-2022/deng-2022.github.io</a></p>
<p>这种效果的静态站点访问，需要将仓库名设置成 <code>用户名.github.io</code> 的格式。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-comment"># URL</span><br><span class="hljs-comment">## Set your site url here. For example, if you use GitHub Page, set url as &#x27;https://username.github.io/project&#x27;</span><br><span class="hljs-attr">url:</span> <span class="hljs-string">https://deng-2022.github.io/</span><br><span class="hljs-attr">root:</span> <span class="hljs-string">/blog</span><br><span class="hljs-comment"># url: https://test.atomgit.net/blog/</span><br><span class="hljs-comment"># url: https://deng-2022.gitee.io/blog</span><br><span class="hljs-comment"># url: https://github.com/deng-2022/blog</span><br><span class="hljs-attr">permalink:</span> <span class="hljs-string">:year/:month/:day/:title/</span><br><span class="hljs-attr">permalink_defaults:</span><br><span class="hljs-attr">pretty_urls:</span><br>  <span class="hljs-attr">trailing_index:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># Set to false to remove trailing &#x27;index.html&#x27; from permalinks</span><br>  <span class="hljs-attr">trailing_html:</span> <span class="hljs-literal">true</span> <span class="hljs-comment"># Set to false to remove trailing &#x27;.html&#x27; from permalinks</span><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">deploy:</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">git</span><br>  <span class="hljs-comment"># repo: git@atomgit.com:deng-2022/blog.git</span><br>  <span class="hljs-attr">repo:</span> <span class="hljs-string">git@github.com:deng-2022/deng-2022.github.io.git</span><br>  <span class="hljs-attr">branch:</span> <span class="hljs-string">master</span><br></code></pre></td></tr></table></figure>

<p>推送过程中出现了报错：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><code class="hljs bash">Please make sure you have the correct access rights<br>and the repository exists.<br>FATAL &#123;<br>  err: Error: Spawn failed<br>      at ChildProcess.&lt;anonymous&gt; (D:\Blog\blog\node_modules\hexo-util\lib\spawn.js:51:21)<br>      at ChildProcess.emit (node:events:519:28)<br>      at cp.emit (D:\Blog\blog\node_modules\cross-spawn\lib\enoent.js:34:29)<br>      at ChildProcess._handle.onexit (node:internal/child_process:293:12) &#123;<br>    code: 128<br>  &#125;<br>&#125; Something<span class="hljs-string">&#x27;s wrong. Maybe you can find the solution here: %s https://hexo.io/docs/troubleshooting.html</span><br></code></pre></td></tr></table></figure>

<p>修改部署配置使用 HTTPS 协议和个人访问令牌无效，重新生成 SSH 密钥也没用，那就是仓库有本身的问题了。</p>
<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-attr">deploy:</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">git</span><br>  <span class="hljs-comment"># repo: git@atomgit.com:deng-2022/blog.git</span><br>  <span class="hljs-comment"># repo: git@github.com:deng-2022/deng-2022.github.io.git</span><br>  <span class="hljs-attr">repo:</span> <span class="hljs-string">https://github.com/deng-2022/deng-2022.github.io.git</span><br>  <span class="hljs-attr">branch:</span> <span class="hljs-string">master</span><br></code></pre></td></tr></table></figure>

<figure class="highlight excel"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs excel">ssh-keygen -<span class="hljs-built_in">t</span> <span class="hljs-symbol">ed25519</span> -C <span class="hljs-string">&quot;your_email@example.com&quot;</span><br></code></pre></td></tr></table></figure>

<p>测试连接也不通。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">D:\Blog\blog&gt;ssh -T git@github.com<br>ssh: connect to host github.com port 22: Connection refused<br></code></pre></td></tr></table></figure>

<p>能 ping 通，但端口连接有问题。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">D:\Blog\blog&gt;ping github.com<br><br>Pinging github.com [127.0.0.1] with 32 bytes of data:<br>Reply from 127.0.0.1: bytes=32 time&lt;1ms TTL=128<br>Reply from 127.0.0.1: bytes=32 time&lt;1ms TTL=128<br>Reply from 127.0.0.1: bytes=32 time&lt;1ms TTL=128<br>Reply from 127.0.0.1: bytes=32 time&lt;1ms TTL=128<br><br>Ping statistics <span class="hljs-keyword">for</span> 127.0.0.1:<br>    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),<br>Approximate round trip <span class="hljs-built_in">times</span> <span class="hljs-keyword">in</span> milli-seconds:<br>    Minimum = 0ms, Maximum = 0ms, Average = 0ms<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs bash">D:\Blog\blog&gt;telnet github.com 22<br>Connecting To github.com...Could not open connection to the host, on port 22: Connect failed<br></code></pre></td></tr></table></figure>

<p>这是一个非常典型的 <strong>DNS 污染/劫持</strong> 问题，<code>github.com</code>被错误地解析到了本地回环地址 <code>127.0.0.1</code>，这导致所有对 GitHub 的访问都被重定向到您自己的电脑。</p>
<p>检查并修复 hosts 文件，hosts 文件可能被恶意软件修改。</p>
<figure class="highlight wren"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs wren"><span class="hljs-string">&quot;C:\Windows\System32\drivers<span class="hljs-char escape_">\e</span>tc\hosts&quot;</span><br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># Copyright (c) 1993-2009 Microsoft Corp.</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># This is a sample HOSTS file used by Microsoft TCP/IP for Windows.</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># This file contains the mappings of IP addresses to host names. Each</span><br><span class="hljs-comment"># entry should be kept on an individual line. The IP address should</span><br><span class="hljs-comment"># be placed in the first column followed by the corresponding host name.</span><br><span class="hljs-comment"># The IP address and the host name should be separated by at least one</span><br><span class="hljs-comment"># space.</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># Additionally, comments (such as these) may be inserted on individual</span><br><span class="hljs-comment"># lines or following the machine name denoted by a &#x27;#&#x27; symbol.</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment"># For example:</span><br><span class="hljs-comment">#</span><br><span class="hljs-comment">#      102.54.94.97     rhino.acme.com          # source server</span><br><span class="hljs-comment">#       38.25.63.10     x.acme.com              # x client host</span><br><br><span class="hljs-comment"># localhost name resolution is handled within DNS itself.</span><br><span class="hljs-comment">#	127.0.0.1       localhost</span><br><span class="hljs-comment">#	::1             localhost</span><br>109.94.209.70      fitgirlrepacks.in               <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirlrepacks.in           <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirlrepacks.co               <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repacks.cc              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repacks.to              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repack.com              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repacks.website         <span class="hljs-comment"># Fake FitGirl site</span><br><br>127.0.0.1 checkhost.local<br>109.94.209.70      www.fitgirl-repacks.cc          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirl-repacks.to          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirl-repack.com          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirl-repacks.website     <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      ww9.fitgirl-repacks.xyz         <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      *.fitgirl-repacks.xyz           <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repacks.xyz             <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repack.net              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirl-repack.net          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirlpack.site                <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirlpack.site            <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirl-repack.org              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirl-repack.org          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirlrepacks.pro              <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirlrepacks.pro          <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      fitgirlrepack.games             <span class="hljs-comment"># Fake FitGirl site</span><br>109.94.209.70      www.fitgirlrepack.games         <span class="hljs-comment"># Fake FitGirl site</span><br></code></pre></td></tr></table></figure>

<p>开了 Steam++ 加速器会新增这些配置：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br></pre></td><td class="code"><pre><code class="hljs bash"><span class="hljs-comment"># Steam++ Start</span><br>127.0.0.1 steamcdn-a.akamaihd.net<br>127.0.0.1 steamuserimages-a.akamaihd.net<br>127.0.0.1 cdn.akamai.steamstatic.com<br>127.0.0.1 community.akamai.steamstatic.com<br>127.0.0.1 avatars.akamai.steamstatic.com<br>127.0.0.1 store.akamai.steamstatic.com<br>127.0.0.1 community.steamstatic.com<br>127.0.0.1 media.steampowered.com<br>127.0.0.1 steamcommunity.com<br>127.0.0.1 www.steamcommunity.com<br>127.0.0.1 store.steampowered.com<br>127.0.0.1 api.steampowered.com<br>127.0.0.1 help.steampowered.com<br>127.0.0.1 login.steampowered.com<br>127.0.0.1 checkout.steampowered.com<br>127.0.0.1 img.youtube.com<br>127.0.0.1 huggingface.co<br>127.0.0.1 github.dev<br>127.0.0.1 api.github.com<br>127.0.0.1 github.githubassets.com<br>127.0.0.1 support-assets.githubassets.com<br>127.0.0.1 education.github.com<br>127.0.0.1 raw.github.com<br>127.0.0.1 githubusercontent.com<br>127.0.0.1 raw.githubusercontent.com<br>127.0.0.1 camo.githubusercontent.com<br>127.0.0.1 cloud.githubusercontent.com<br>127.0.0.1 avatars.githubusercontent.com<br>127.0.0.1 avatars0.githubusercontent.com<br>127.0.0.1 avatars1.githubusercontent.com<br>127.0.0.1 avatars2.githubusercontent.com<br>127.0.0.1 avatars3.githubusercontent.com<br>127.0.0.1 user-images.githubusercontent.com<br>127.0.0.1 objects.githubusercontent.com<br>127.0.0.1 private-user-images.githubusercontent.com<br>127.0.0.1 github.com<br>127.0.0.1 pages.github.com<br>127.0.0.1 gist.github.com<br>127.0.0.1 githubapp.com<br><span class="hljs-comment"># Steam++ End</span><br></code></pre></td></tr></table></figure>

<p>哎哟卧艹，开了 Steam++ 加速器果然影响到本机 host 配置了，原来加速器原理是这样的么，待会儿查一查了解下。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><code class="hljs bash">C:\WINDOWS\system32&gt;ping github.com<br><br>正在 Ping github.com [20.205.243.166] 具有 32 字节的数据:<br>来自 20.205.243.166 的回复: 字节=32 时间=132ms TTL=110<br>来自 20.205.243.166 的回复: 字节=32 时间=132ms TTL=110<br>来自 20.205.243.166 的回复: 字节=32 时间=132ms TTL=110<br>来自 20.205.243.166 的回复: 字节=32 时间=134ms TTL=110<br><br>20.205.243.166 的 Ping 统计信息:<br>    数据包: 已发送 = 4，已接收 = 4，丢失 = 0 (0% 丢失)，<br>往返行程的估计时间(以毫秒为单位):<br>    最短 = 132ms，最长 = 134ms，平均 = 132ms<br></code></pre></td></tr></table></figure>

<p>这下正常了，继续推送下博客代码。</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo cl<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo g<br></code></pre></td></tr></table></figure>

<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">hexo d<br></code></pre></td></tr></table></figure>

<p>推送一切正常，但是这进度条积攒太慢了吧，，花一中午时间都不晓得能不能推送完毕。</p>
<p>哎哟妈的，这 Github 仓库推送有点毛病，或者这两年自己的博客推送内容愈加庞大了，正常拉取推送静态站点项目都挺费劲的。</p>
<blockquote>
<p>2024 年 5 月 10 日</p>
</blockquote>
<p>以下一整块都算是踩坑记录，这里就不单拎出来做标题了，下面是 <strong>Github 部署博客的详细过程（包括踩坑）</strong>：</p>
<p>推荐阅读：<strong>可能是最好的部署教程：<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_43187818/article/details/104468721">安装 Hexo 博客并部署到 GitHub 或云服务器（细节教程，越过各种坑）-CSDN 博客</a></strong></p>
<p>在 config.yml 文件下，配置好远程 Github 仓库：</p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-attr">deploy:</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">git</span><br>  <span class="hljs-attr">repo:</span> <span class="hljs-string">git@github.com:deng-2022/deng-2022.github.io.git</span><br>  <span class="hljs-attr">branch:</span> <span class="hljs-string">main</span><br></code></pre></td></tr></table></figure>

<p>一直显示推送错误：</p>
<p><img src="http://blog.memory-life.xyz/image-20240509133447437.png" alt="image-20240509133447437"></p>
<p>跟着好多博客教程，我正常完成了<strong>远程仓库的搭建</strong>、 <strong>ssh 密钥对的配置</strong>，但仍一直出现上面的报错：</p>
<p>测试 Github 是否能正常网络连接：</p>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">ssh -v git@github.com<br></code></pre></td></tr></table></figure>

<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/I_HOPE_SOAR/article/details/120890926">ssh -T git@github kex_exchange_identification: Connection closed by remote host-CSDN 博客</a></p>
<p><a target="_blank" rel="noopener" href="https://cloud.tencent.com/developer/article/2114329">Github：通过 sshkey 的方式拉取代码报错 kex_exchange_identification: Connection closed by remote-腾讯云开发者社区-腾讯云 (tencent.com)</a></p>
<p><a target="_blank" rel="noopener" href="https://zhuanlan.zhihu.com/p/577623855">Github 备份代码出现 kex_exchange_identification: Connection closed by remote host - 知乎 (zhihu.com)</a></p>
<p>[git push 报错 ! <a target="_blank" rel="noopener" href="https://blog.51cto.com/lexsaints/2806334">remote rejected] master -＞ master (push declined due to email privacy restrictions)_51CTO 博客_git push 报错 remote rejected</a></p>
<p>我尝试测试下<strong>直接推送 .deploy_git 目录下的文件到 Github</strong>，结果这样也不行：</p>
<p><img src="http://blog.memory-life.xyz/image-20240510090106558.png" alt="image-20240510090106558"></p>
<p><img src="http://blog.memory-life.xyz/image-20240509133008505.png" alt="image-20240509133008505"></p>
<p><img src="http://blog.memory-life.xyz/image-20240509133029958.png" alt="image-20240509133029958"></p>
<p>看来不是 Hexo 和 Github 仓库配置问题，而是要推送的代码和文件有问题。这个信息显示这些文件中包含了阿里云 AccessKey，可能会有泄露风险，所以阻止了这次代码推送。</p>
<p>已经过去三天，昨天有阿里云客服打来电话，今天登录后又看到阿里云给我发来了告警信息：</p>
<p><img src="http://blog.memory-life.xyz/image-20240510090503496.png" alt="image-20240510090503496"></p>
<p>我想起来这是为什么了，那是因为我两天前根据这个博客教程，尝试在云服务器上部署个人博客。</p>
<p>那具体采用什么解决方法呢？早知道先搞 Github 部署了，现在直接推送代码还受到阿里云限制了。</p>
<p>没什么特殊操作，我选了第三项。</p>
<p>不过我忘了多会儿推上去的代码，是昨天下午嘛？刚刚突然发现代码昨天提交成功，现在博客也能正常访问了。</p>
<p><img src="C:\Users\Lenovo\AppData\Roaming\Typora\typora-user-images\image-20240510174603918.png" alt="image-20240510174603918"></p>
<p>Github 托管博客地址：<a target="_blank" rel="noopener" href="https://deng-2022.github.io/">Memory’s blog (deng-2022.github.io)</a></p>
<h2 id="AtomGit-托管"><a href="#AtomGit-托管" class="headerlink" title="AtomGit 托管"></a>AtomGit 托管</h2><blockquote>
<p>2024 年 5 月 9 日</p>
</blockquote>
<p><a target="_blank" rel="noopener" href="https://gitee.com/oschina/git-osc/issues/I9NGES?from=project-issue">给大伙推个提供静态托管的平台 AtomGit · Issue #I9NGES · 开源中国/Gitee Feedback - Gitee.com</a></p>
<p>今天逛 Gitee 开源中国社区，看到了最新有效的 Hexo 静态博客站点托管解决方案，感觉可以尝试一下。</p>
<p>平台网址：<a target="_blank" rel="noopener" href="https://passport.atomgit.com/login?app_id=62d7a0ebaf95bdacf74fc6b9&protocol=oidc&finish_login_url=/interaction/oidc/b37b5001-48d4-4f2c-b7d0-2ffda4d50635/login&login_page_context=">开放原子开发者用户中心 (atomgit.com)</a>，一个开放<strong>开源原子基金会</strong>相关平台。</p>
<p><img src="http://blog.memory-life.xyz/image-20240509173810801.png" alt="image-20240509173810801"></p>
<p><img src="http://blog.memory-life.xyz/image-20240509173837912.png" alt="image-20240509173837912"></p>
<p>还是很好用的，可以同步 Gitee 账号下的仓库，不过要求输入 Gitee 私人令牌。</p>
<h3 id="Gitee-创建私人令牌"><a href="#Gitee-创建私人令牌" class="headerlink" title="Gitee 创建私人令牌"></a>Gitee 创建私人令牌</h3><p>那么怎么<strong>拿到私人令牌呢</strong>？</p>
<p>官方提供：<a target="_blank" rel="noopener" href="https://gitee.com/help/articles/4336#article-header8">仓库镜像管理 （ Gitee &lt;-&gt; Github 双向同步） - Gitee.com</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240509162647683.png" alt="image-20240509162647683"></p>
<p>可以看到我去年使用 Gitee 作为图床存储图片时，是进行过这步操作的，只不过连我自己都忘了。</p>
<p>教程很好看懂，步骤写的很明确操作也没难度。拿到唯一的 Gitee 私人令牌（当然可以同时有多个令牌），<strong>要妥善保存好</strong>。</p>
<h3 id="安装-Pages-服务"><a href="#安装-Pages-服务" class="headerlink" title="安装 Pages 服务"></a>安装 Pages 服务</h3><p>在 <strong>AutoGit 仓库</strong>下安装 Pages 托管服务：</p>
<p><img src="http://blog.memory-life.xyz/image-20240509162339945.png" alt="image-20240509162339945"></p>
<p><img src="http://blog.memory-life.xyz/image-20240509164434312.png" alt="image-20240509164434312"></p>
<p>因为 Gitee 仓库下的博客站点代码是完整的，这里直接启动 Pages 服务就能开启访问。第一次访问应该是需要缓冲时间，等了有十分钟博客才能正常加载图文。（<strong>大部分图片都上传到了 Gitee 图床，这个托管网站下无法展示，只能展示本地配置的静态图片。</strong>）</p>
<p><img src="C:\Users\Lenovo\AppData\Roaming\Typora\typora-user-images\image-20240509180920771.png" alt="image-20240509180920771"></p>
<p>推送最新内容成功，<strong>最新个人博客站点：<a target="_blank" rel="noopener" href="https://deng-2022.atomgit.net/blog">[Memory’s Blog]</a></strong></p>
<p><img src="http://blog.memory-life.xyz/image-20240509172503261.png" alt="image-20240509172503261"></p>
<p>根据配置文件，默认推送到 main 分支，注意同步更改一下 Paegs 托管分支才能看到最新博客。</p>
<p><img src="http://blog.memory-life.xyz/image-20240509172739987.png" alt="image-20240509172739987"></p>
<p>blog 下的 _config.yml 文件内容编辑：</p>
<figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><code class="hljs yml"><span class="hljs-attr">deploy:</span><br>  <span class="hljs-attr">type:</span> <span class="hljs-string">git</span><br>  <span class="hljs-attr">repo:</span> <span class="hljs-string">git@atomgit.com:deng-2022/blog.git</span><br>  <span class="hljs-attr">branch:</span> <span class="hljs-string">main</span><br></code></pre></td></tr></table></figure>

<h3 id="问题"><a href="#问题" class="headerlink" title="问题"></a>问题</h3><blockquote>
<p>2024 年 5 月 9 日</p>
</blockquote>
<p>待解决的问题：</p>
<ul>
<li>图片都不能正常显示，都在 Gitee 图床上，短时间内不好解决。</li>
<li>AutoGit 仓库下多</li>
</ul>
<h3 id="解决"><a href="#解决" class="headerlink" title="解决"></a>解决</h3><blockquote>
<p>2024 年 7 月 8 日</p>
</blockquote>
<p>前两个月一直不能成功部署，原来是这个原因：</p>
<p><a target="_blank" rel="noopener" href="https://docs.atomgit.com/pages/help/">pages 帮助文档 | AtomGit 帮助文档</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240708090915651.png" alt="image-20240708090915651"></p>
<figure class="highlight markdown"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br></pre></td><td class="code"><pre><code class="hljs markdown"><span class="hljs-section"># URL</span><br><br><span class="hljs-section">## Set your site url here. For example, if you use GitHub Page, set url as &#x27;https://username.github.io/project&#x27;</span><br><br>url: https://test.atomgit.net/memory<span class="hljs-emphasis">_blog</span><br><span class="hljs-emphasis">root: /memory_</span>blog<br><br><span class="hljs-section"># url: https://deng-2022.gitee.io/blog</span><br><br><span class="hljs-section"># url: https://github.com/deng-2022/blog</span><br><br>permalink: :year/:month/:day/:title/<br>permalink<span class="hljs-emphasis">_defaults:</span><br><span class="hljs-emphasis">pretty_</span>urls:<br>trailing<span class="hljs-emphasis">_index: true # Set to false to remove trailing &#x27;index.html&#x27; from permalinks</span><br><span class="hljs-emphasis">trailing_</span>html: true # Set to false to remove trailing &#x27;.html&#x27; from permalinks<br></code></pre></td></tr></table></figure>

<p>还是决定用 AutoGit Pages 服务部署个人博客。</p>
<p><img src="http://blog.memory-life.xyz/image-20240708085506102.png" alt="image-20240708085506102"></p>
<p>出现这样的问题，那就是推送代码至远程仓库的过程中，没有推送权限而导致出错：</p>
<p><a target="_blank" rel="noopener" href="https://blog.csdn.net/weixin_40486955/article/details/105967026">git 报错—The authenticity of host can’t be established._git the authenticity of host can’t-CSDN 博客</a></p>
<p><img src="http://blog.memory-life.xyz/image-20240708090406546.png" alt="image-20240708090406546"></p>
<p>在代码托管仓库中设置就好了，公钥在本地 C 盘下的用户目录中：</p>
<p><img src="http://blog.memory-life.xyz/image-20240708090609941.png" alt="image-20240708090609941"></p>
<p>生成密钥可以参考这个文档，网上基本上一找就有：<a target="_blank" rel="noopener" href="https://docs.atomgit.com/user/sshkey/">配置 SSH 密钥 | AtomGit 帮助文档</a></p>
<p>部署成功，可以访问了：</p>
<p><a target="_blank" rel="noopener" href="https://deng-2022.atomgit.net/memory_blog/">Memory’s blog (atomgit.net)</a></p>
<h2 id="Vuepress-文档站点-部署"><a href="#Vuepress-文档站点-部署" class="headerlink" title="Vuepress 文档站点 部署"></a>Vuepress 文档站点 部署</h2><p>🔥 推荐阅读：<strong>（2023/11/28 晚）</strong></p>
<ul>
<li><a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_45415736/article/details/130194399">vuepress 打包部署到 Gitee Pages 访问页面出现样式丢失_De Ja Vu 幻觉记忆的博客-CSDN 博客</a></li>
<li><a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/guide/getting-started.html#manual-installation">Getting Started | VuePress (vuejs.org)</a></li>
<li><a target="_blank" rel="noopener" href="http://caibaojian.com/vuepress/guide/getting-started.html#%E5%85%A8%E5%B1%80%E5%AE%89%E8%A3%85">VuePress 起步 - VuePress 中文网 (caibaojian.com)</a></li>
<li><a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/zh/guide/getting-started.html">快速上手 | VuePress (vuejs.org)</a></li>
</ul>
<h3 id="快速搭建"><a href="#快速搭建" class="headerlink" title="快速搭建"></a>快速搭建</h3><ul>
<li>哎，全局安装 Vuepress 不支持了，本来挺好用的：</li>
</ul>
<figure class="highlight csharp"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs csharp">yarn <span class="hljs-keyword">init</span> / npm <span class="hljs-keyword">init</span><br>yarn <span class="hljs-keyword">global</span> <span class="hljs-keyword">add</span> vuepress / npm install -g vuepress<br></code></pre></td></tr></table></figure>

<ul>
<li>直接在 Github 下载了官方文档源码，呃，还是局部安装吧</li>
</ul>
<blockquote>
<p>下载地址：<a target="_blank" rel="noopener" href="https://github.com/vuejs/vuepress/tree/v1.9.10">vuejs/vuepress at v1.9.10 (github.com)</a></p>
</blockquote>
<ul>
<li>拉取代码后执行依次以下命令，即可成功在本地部署文档站点：</li>
</ul>
<figure class="highlight cmake"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><code class="hljs cmake">yarn <span class="hljs-keyword">install</span><br>yarn dev<br></code></pre></td></tr></table></figure>

<ul>
<li>效果如下：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231127233627342.png" alt="image-20231127233627342"></p>
<ul>
<li>这两天在研究这个 Vuepress，感觉比 VitePress 更成熟、更好用</li>
<li>等我把局部安装的配置搞清楚之后，再来此处作详细记录<strong>（2023/11/27 晚）</strong></li>
</ul>
<h3 id="配置详解"><a href="#配置详解" class="headerlink" title="配置详解"></a>配置详解</h3><h4 id="侧边栏配置"><a href="#侧边栏配置" class="headerlink" title="侧边栏配置"></a>侧边栏配置</h4><ul>
<li>这里着重详解下 Vuepress 文档站点的侧边栏配置，官方文档在这方面的编写实在是有点含糊不清 <strong>（2023/12/06 晚）</strong></li>
</ul>
<blockquote>
<p>官方文档：<a target="_blank" rel="noopener" href="https://vuepress.vuejs.org/zh/theme/default-theme-config.html#%E4%BE%A7%E8%BE%B9%E6%A0%8F">默认主题配置 | VuePress (vuejs.org)</a></p>
</blockquote>
<ul>
<li>不同页面显示不同的侧边栏</li>
<li>侧边栏分组</li>
<li>分组可折叠？？？</li>
<li>侧边栏展示标题深度</li>
<li>两个全局配置：活动标题链接（默认开启）和展开所有标题链接（默认关闭）</li>
<li>自动生成侧边栏：.js 配置方式 + .md 配置方式，后者更灵活，能配置标题</li>
<li>禁用侧边栏</li>
</ul>
<h4 id="其他"><a href="#其他" class="headerlink" title="其他"></a>其他</h4><ul>
<li><p>这里先回答之前的<strong>两个傻逼的问题</strong>：<strong>（2023/12/06 晚）</strong></p>
<blockquote>
<p>🤡 选中导航栏后，默认为第一个子文件，也就是说，导航栏下没有默认 README.md 页面</p>
</blockquote>
<ul>
<li>这是什么意思呢？就是这个意思：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231206222316398.png" alt="image-20231206222316398"></p>
<ul>
<li>这不就很简单？<strong>配置好导航栏菜单的跳转</strong>就可以了：</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-attr">nav</span>: [<br>    &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;首页&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/&quot;</span> &#125;,<br>    &#123;<br>      <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;指南&quot;</span>,<br>      <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span>,<br>      <span class="hljs-attr">items</span>: [<br>        &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;简介&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span> &#125;,<br>        &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;安装&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/a2f161/&quot;</span> &#125;,<br>        &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;快速开始&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/793dcb/&quot;</span> &#125;,<br>        &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;返回响应码&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/2f674a/&quot;</span> &#125;,<br>        &#123;<br>          <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;API接口&quot;</span>,<br>          <span class="hljs-attr">items</span>: [<br>            &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;随机壁纸&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfab5/&quot;</span> &#125;,<br>            &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;随机名言&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/dd027d/&quot;</span> &#125;,<br>            &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;天气查询&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/2b8e22/&quot;</span> &#125;,<br>            &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;获取IP信息归属地&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/0fc1d2/&quot;</span> &#125;,<br>          ],<br>        &#125;,<br>      ],<br>    &#125;,<br>   .......................<br>  ],<br></code></pre></td></tr></table></figure>

<blockquote>
<p>🤡 显示文章的右侧目录</p>
</blockquote>
<ul>
<li>大哥，想什么呢，官网文档都没实现呢，不过有插件可以实现，没有成功过：<a target="_blank" rel="noopener" href="https://www.cnblogs.com/dingshaohua/p/16618802.html">vuepress 右侧小目录 二级目录 右侧锚点 模拟 Docusaurus 效果 - 丁少华 - 博客园 (cnblogs.com)</a></li>
<li>要想做个右侧目录，那就使用 <code>Vdoing</code> 吧</li>
</ul>
</li>
</ul>
<h3 id="Gitee-部署"><a href="#Gitee-部署" class="headerlink" title="Gitee 部署"></a>Gitee 部署</h3><ul>
<li>部署之前肯定要有 Gitee 远程仓库吧，创建一个新仓库，这里<strong>新仓库名</strong>就叫 <code>VuepressDocs3</code>了<strong>（2023/11/28 晚）</strong></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231128173007530.png" alt="image-20231128173007530"></p>
<ul>
<li>在 <code>.vuepress/config.js</code>下，<strong>作如下配置</strong>：</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-variable language_">module</span>.<span class="hljs-property">exports</span> = &#123;<br>  <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;Mem-API 开发者文档&quot;</span>,<br>  <span class="hljs-attr">description</span>: <span class="hljs-string">&quot;🚀为简化开发而生&quot;</span>,<br>  <span class="hljs-attr">base</span>: <span class="hljs-string">&quot;/vuepress-docs3/&quot;</span>,<br>  <span class="hljs-attr">head</span>: [[<span class="hljs-string">&quot;link&quot;</span>, &#123; <span class="hljs-attr">rel</span>: <span class="hljs-string">&quot;icon&quot;</span>, <span class="hljs-attr">href</span>: <span class="hljs-string">`favicon.png`</span> &#125;]],<br>  <span class="hljs-attr">themeConfig</span>: &#123;<br>    <span class="hljs-comment">// 主题设置</span><br>    <span class="hljs-attr">logo</span>: <span class="hljs-string">&quot;/favicon.png&quot;</span>,<br>    <span class="hljs-attr">nav</span>: [ ...<br>    ],<br>    <span class="hljs-attr">sidebar</span>: &#123; ...<br>    &#125;,<br>  &#125;,<br>&#125;;<br></code></pre></td></tr></table></figure>

<ul>
<li><p>这里注意，base 的值对应的是将要部署的 Gitee 仓库地址，看清楚上面<strong>新仓库的地址</strong>：<code>vuepress-docs3</code></p>
</li>
<li><p>执行以下命令，打包：</p>
</li>
</ul>
<figure class="highlight n1ql"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs n1ql">yarn docs:<span class="hljs-keyword">build</span><br></code></pre></td></tr></table></figure>

<ul>
<li>然后你就会神奇的发现，.vuepress 目录下多了一个 dist 文件夹，这就是打包好的静态网站文件了</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231128173335872.png" alt="image-20231128173335872"></p>
<ul>
<li>把 <code>dist</code> 下的文件远程推送到指定 Gitee 远程仓库中，开启 GiteePages 服务：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231128173500061.png" alt="image-20231128173500061"></p>
<ul>
<li>大功告成，直接访问即可：<a target="_blank" rel="noopener" href="https://deng-2022.gitee.io/vuepress-docs3/">Mem-API 开发者文档 (gitee.io)</a></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231128173533059.png" alt="image-20231128173533059"></p>
<h3 id="踩坑记录"><a href="#踩坑记录" class="headerlink" title="踩坑记录"></a>踩坑记录</h3><ul>
<li>踩过的坑算很多了，这里一并提一下：<strong>（2023/11/28 晚）</strong></li>
</ul>
<blockquote>
<p>2023/11/26 晚</p>
<p>了解到了 Vuepress 的 <code>全局安装</code>（不支持了）、<code>局部安装</code> 和 <code>直接通过第三方主题安装</code>，并了解了相关配置</p>
<h5 id="总结来讲，这晚尝试了下-Vuepress-站点的简单配置，还没开始部署"><a href="#总结来讲，这晚尝试了下-Vuepress-站点的简单配置，还没开始部署" class="headerlink" title="总结来讲，这晚尝试了下 Vuepress 站点的简单配置，还没开始部署"></a>总结来讲，这晚尝试了下 Vuepress 站点的简单配置，还没开始部署</h5></blockquote>
<ul>
<li><p>妈的，搞了一晚上 Vuepress ，好像没啥成果，但我总得记录一些东西吧：</p>
<ul>
<li><p>部署 Vuepress 文档站点：原生（全局安装、局部安装） / 第三方主题</p>
</li>
<li><p>局部安装，好多东西还得自己配置，我哪来的闲心</p>
</li>
<li><p>全局安装的话，他奶奶的，执行命令还不起作用</p>
</li>
<li><p>第三方主题，感觉很不亲切</p>
</li>
<li><p>尝试部署 Github，大体上成功了，但是打包完成后执有问题，现在本地部署也出现问题了</p>
</li>
</ul>
</li>
</ul>
<blockquote>
<p>2023/11/27 晚</p>
</blockquote>
<ul>
<li>也就睡前半个多小时，简单地搞了搞，发现在 Github 上可以直接拉官方代码，实现全局安装</li>
</ul>
<blockquote>
<h5 id="🚀-下载地址：vuejs-vuepress-at-v1-9-10-github-com"><a href="#🚀-下载地址：vuejs-vuepress-at-v1-9-10-github-com" class="headerlink" title="🚀 下载地址：vuejs/vuepress at v1.9.10 (github.com)"></a>🚀 下载地址：<a target="_blank" rel="noopener" href="https://github.com/vuejs/vuepress/tree/v1.9.10">vuejs/vuepress at v1.9.10 (github.com)</a></h5></blockquote>
<p><img src="http://blog.memory-life.xyz/image-20231127233627342.png" alt="image-20231127233627342"></p>
<ul>
<li>还想着在这个基础上修修改改，做个文档站点，不过真的复杂，看看了解即可，在这个基础上做改动太不实际了，直接劝退</li>
<li>那就用前天晚上的成果，直接着手部署了：Github / Gitee</li>
</ul>
<blockquote>
<p>🍻 推荐阅读：<a target="_blank" rel="noopener" href="https://blog.csdn.net/qq_45415736/article/details/130194399">vuepress 打包部署到 Gitee Pages 访问页面出现样式丢失_De Ja Vu 幻觉记忆的博客-CSDN 博客</a></p>
</blockquote>
<ul>
<li>Github 不想多说，太他妈吃网速了，访问慢不说，好不容易推送成功，还老是显示部署失败，发了十几条邮箱信息都没咋注意：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231128175139846.png" alt="image-20231128175139846"></p>
<p><img src="http://blog.memory-life.xyz/image-20231128175234867.png" alt="image-20231128175234867"></p>
<ul>
<li>呐，上面就是 Github Pages 服务了，太卡了，部署不了，不过网速好的话是没有问题的<strong>（2023/11/28 晚）</strong></li>
</ul>
<h2 id="Vdoing-文档站点-部署"><a href="#Vdoing-文档站点-部署" class="headerlink" title="Vdoing 文档站点 部署"></a>Vdoing 文档站点 部署</h2><h3 id="快速搭建-1"><a href="#快速搭建-1" class="headerlink" title="快速搭建"></a>快速搭建</h3><ul>
<li>拉取官方 demo<strong>（2023/12/06 晚）</strong></li>
</ul>
<blockquote>
<p>官网地址：<a target="_blank" rel="noopener" href="https://doc.xugaoyi.com/pages/793dcb/#%E5%AE%89%E8%A3%85%E5%92%8C%E5%90%AF%E5%8A%A8">快速上手 | vuepress-theme-vdoing (xugaoyi.com)</a></p>
</blockquote>
<ul>
<li>如下，直接按照官方文档的步骤，<strong>拉取官方文档站点预设 demo</strong>（这一步不用作过多详细解释了，看官方文档就行）：</li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231206214916590.png" alt="image-20231206214916590"></p>
<ul>
<li>拉取成功，简单看一下<strong>目录结构</strong>（官网提供），最重要的配置文件就是 <code>docs/.vuepress/config.js</code> 配置文件了：</li>
</ul>
<figure class="highlight stylus"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><code class="hljs stylus">.<br>├── <span class="hljs-selector-class">.github</span>   (可选，GitHub 相关文件)<br>│   ├── workflows<br>│   │   ├── baiduPush<span class="hljs-selector-class">.yml</span> (可选，百度定时自动推送)<br>│   │   └── ci<span class="hljs-selector-class">.yml</span> (可选，自动部署)<br>├── docs (必须，不要修改文件夹名称)<br>│   ├── <span class="hljs-selector-class">.vuepress</span> （同官方，查看：https:<span class="hljs-comment">//vuepress.vuejs.org/zh/guide/directory-structure.html#目录结构）</span><br>│   ├── @pages (可选，自动生成的文件夹，存放分类页、标签页、归档页)<br>│   ├── _posts (可选，专门存放碎片化博客文章的文件夹)<br>│   ├── &lt;结构化目录&gt;<br>│   └── index<span class="hljs-selector-class">.md</span> (首页)<br>├── vdoing (可选，本地的vdoing主题)<br>├── utils  (可选，vdoing主题使用的node工具)<br>│   ├── modules<br>│   ├── config<span class="hljs-selector-class">.yml</span> (可选，批量操作front matter配置)<br>│   ├── editFrontmatter<span class="hljs-selector-class">.js</span> (可选，批量操作front matter工具)<br>├── baiduPush<span class="hljs-selector-class">.sh</span> (可选，百度推送命令脚本)<br>├── deploy<span class="hljs-selector-class">.sh</span> (可选，部署命令脚本)<br>│<br>└── package.json<br></code></pre></td></tr></table></figure>

<ul>
<li><h5 id="简单修改配置："><a href="#简单修改配置：" class="headerlink" title="简单修改配置："></a>简单修改配置：</h5></li>
<li><p>基本上所有配置官方都已经替我们做好了，我们要做的仅仅是改改 <code>网站标题</code>、<code>导航栏</code>、<code>侧边栏</code>，然后把博文替换成自己的就行</p>
</li>
<li><p>简单甩出我的配置，仅供参考，详细的配置这里不作过多介绍，需要靠自己慢慢摸索<strong>（2023/12/06 晚）</strong></p>
</li>
</ul>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br><span class="line">114</span><br><span class="line">115</span><br><span class="line">116</span><br><span class="line">117</span><br><span class="line">118</span><br><span class="line">119</span><br><span class="line">120</span><br><span class="line">121</span><br><span class="line">122</span><br><span class="line">123</span><br><span class="line">124</span><br><span class="line">125</span><br><span class="line">126</span><br><span class="line">127</span><br><span class="line">128</span><br><span class="line">129</span><br><span class="line">130</span><br><span class="line">131</span><br><span class="line">132</span><br><span class="line">133</span><br><span class="line">134</span><br><span class="line">135</span><br><span class="line">136</span><br><span class="line">137</span><br><span class="line">138</span><br><span class="line">139</span><br><span class="line">140</span><br><span class="line">141</span><br><span class="line">142</span><br><span class="line">143</span><br><span class="line">144</span><br><span class="line">145</span><br><span class="line">146</span><br><span class="line">147</span><br><span class="line">148</span><br><span class="line">149</span><br><span class="line">150</span><br><span class="line">151</span><br><span class="line">152</span><br><span class="line">153</span><br><span class="line">154</span><br><span class="line">155</span><br><span class="line">156</span><br><span class="line">157</span><br><span class="line">158</span><br><span class="line">159</span><br><span class="line">160</span><br><span class="line">161</span><br><span class="line">162</span><br><span class="line">163</span><br><span class="line">164</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-keyword">const</span> baiduCode = <span class="hljs-built_in">require</span>(<span class="hljs-string">&quot;./config/baiduCode.js&quot;</span>); <span class="hljs-comment">// 百度统计hm码</span><br><span class="hljs-variable language_">module</span>.<span class="hljs-property">exports</span> = &#123;<br>  <span class="hljs-attr">theme</span>: <span class="hljs-string">&quot;vdoing&quot;</span>, <span class="hljs-comment">// 使用依赖包主题</span><br>  <span class="hljs-comment">// theme: require.resolve(&#x27;../../vdoing&#x27;), // 使用本地主题 (先将vdoing主题文件下载到本地：https://github.com/xugaoyi/vuepress-theme-vdoing)</span><br>  <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;Memory-API-接口开放平台&quot;</span>,<br>  <span class="hljs-attr">description</span>: <span class="hljs-string">&quot;🚀为简化开发而生&quot;</span>,<br>  <span class="hljs-attr">base</span>: <span class="hljs-string">&quot;/vdoing-doc/&quot;</span>, <span class="hljs-comment">// 默认&#x27;/&#x27;。如果你想将你的网站部署到如 https://foo.github.io/bar/，那么 base 应该被设置成 &quot;/bar/&quot;,（否则页面将失去样式等文件）</span><br>  <span class="hljs-comment">// 主题配置</span><br>  <span class="hljs-attr">themeConfig</span>: &#123;<br>    <span class="hljs-attr">nav</span>: [<br>      &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;首页&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/&quot;</span> &#125;,<br>      &#123;<br>        <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;指南&quot;</span>,<br>        <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span>,<br>        <span class="hljs-attr">items</span>: [<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;简介&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;安装&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/a2f161/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;快速开始&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/793dcb/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;返回响应码&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/2f674a/&quot;</span> &#125;,<br>          &#123;<br>            <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;API接口&quot;</span>,<br>            <span class="hljs-attr">items</span>: [<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;随机壁纸&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfab5/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;随机名言&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/dd027d/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;天气查询&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/2b8e22/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;获取IP信息归属地&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/0fc1d2/&quot;</span> &#125;,<br>            ],<br>          &#125;,<br>        ],<br>      &#125;,<br>      &#123;<br>        <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;配置&quot;</span>,<br>        <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ce175c/&quot;</span>,<br>        <span class="hljs-attr">items</span>: [&#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;使用配置&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ce175c/&quot;</span> &#125;],<br>      &#125;,<br>      &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;案例&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/5d571c/&quot;</span> &#125;,<br>      &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;问答&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/9cc27d/&quot;</span> &#125;,<br>      &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;赞助&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/1b12ed/&quot;</span> &#125;,<br>    ],<br>    <span class="hljs-attr">sidebarDepth</span>: <span class="hljs-number">2</span>, <span class="hljs-comment">// 侧边栏显示深度，默认1，最大2（显示到h3标题）</span><br>    <span class="hljs-attr">logo</span>: <span class="hljs-string">&quot;/img/logo.png&quot;</span>, <span class="hljs-comment">// 导航栏logo</span><br>    <span class="hljs-attr">repo</span>: <span class="hljs-string">&quot;xugaoyi/vuepress-theme-vdoing&quot;</span>, <span class="hljs-comment">// 导航栏右侧生成Github链接</span><br>    <span class="hljs-attr">searchMaxSuggestions</span>: <span class="hljs-number">10</span>, <span class="hljs-comment">// 搜索结果显示最大数</span><br>    <span class="hljs-attr">lastUpdated</span>: <span class="hljs-string">&quot;上次更新&quot;</span>, <span class="hljs-comment">// 更新的时间，及前缀文字   string | boolean (取值为git提交时间)</span><br><br>    <span class="hljs-comment">// 以下配置是Vdoing主题改动的和新增的配置</span><br>    <span class="hljs-attr">sidebar</span>: &#123; <span class="hljs-attr">mode</span>: <span class="hljs-string">&quot;structuring&quot;</span>, <span class="hljs-attr">collapsable</span>: <span class="hljs-literal">false</span> &#125;, <span class="hljs-comment">// 侧边栏  &#x27;structuring&#x27; | &#123; mode: &#x27;structuring&#x27;, collapsable: Boolean&#125; | &#x27;auto&#x27; | 自定义    温馨提示：目录页数据依赖于结构化的侧边栏数据，如果你不设置为&#x27;structuring&#x27;,将无法使用目录页</span><br><br>    <span class="hljs-comment">// sidebarOpen: false, // 初始状态是否打开侧边栏，默认true</span><br>    <span class="hljs-attr">updateBar</span>: &#123;<br>      <span class="hljs-comment">// 最近更新栏</span><br>      <span class="hljs-attr">showToArticle</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// 显示到文章页底部，默认true</span><br>      <span class="hljs-comment">// moreArticle: &#x27;/archives&#x27; // “更多文章”跳转的页面，默认&#x27;/archives&#x27;</span><br>    &#125;,<br>    <span class="hljs-comment">// titleBadge: false, // 文章标题前的图标是否显示，默认true</span><br>    <span class="hljs-comment">// titleBadgeIcons: [ // 文章标题前图标的地址，默认主题内置图标</span><br>    <span class="hljs-comment">//   &#x27;图标地址1&#x27;,</span><br>    <span class="hljs-comment">//   &#x27;图标地址2&#x27;</span><br>    <span class="hljs-comment">// ],</span><br><br>    <span class="hljs-attr">pageStyle</span>: <span class="hljs-string">&quot;line&quot;</span>, <span class="hljs-comment">// 页面风格，可选值：&#x27;card&#x27;卡片 | &#x27;line&#x27; 线（未设置bodyBgImg时才生效）， 默认&#x27;card&#x27;。 说明：card时背景显示灰色衬托出卡片样式，line时背景显示纯色，并且部分模块带线条边框</span><br><br>    <span class="hljs-comment">// contentBgStyle: 1,</span><br><br>    <span class="hljs-attr">category</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// 是否打开分类功能，默认true。 如打开，会做的事情有：1. 自动生成的frontmatter包含分类字段 2.页面中显示与分类相关的信息和模块 3.自动生成分类页面（在@pages文件夹）。如关闭，则反之。</span><br>    <span class="hljs-attr">tag</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// 是否打开标签功能，默认true。 如打开，会做的事情有：1. 自动生成的frontmatter包含标签字段 2.页面中显示与标签相关的信息和模块 3.自动生成标签页面（在@pages文件夹）。如关闭，则反之。</span><br>    <span class="hljs-comment">// archive: false, // 是否打开归档功能，默认true。 如打开，会做的事情有：1.自动生成归档页面（在@pages文件夹）。如关闭，则反之。</span><br><br>    <span class="hljs-attr">author</span>: &#123;<br>      <span class="hljs-comment">// 文章默认的作者信息，可在md文件中单独配置此信息 String | &#123;name: String, href: String&#125;</span><br>      <span class="hljs-attr">name</span>: <span class="hljs-string">&quot;Evan Xu&quot;</span>, <span class="hljs-comment">// 必需</span><br>      <span class="hljs-attr">href</span>: <span class="hljs-string">&quot;https://github.com/xugaoyi&quot;</span>, <span class="hljs-comment">// 可选的</span><br>    &#125;,<br>    <span class="hljs-attr">social</span>: &#123;<br>      <span class="hljs-comment">// 社交图标，显示于博主信息栏和页脚栏</span><br>      <span class="hljs-comment">// iconfontCssFile: &#x27;//at.alicdn.com/t/font_1678482_u4nrnp8xp6g.css&#x27;, // 可选，阿里图标库在线css文件地址，对于主题没有的图标可自由添加</span><br>      <span class="hljs-attr">icons</span>: [<br>        &#123;<br>          <span class="hljs-attr">iconClass</span>: <span class="hljs-string">&quot;icon-youjian&quot;</span>,<br>          <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;发邮件&quot;</span>,<br>          <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;mailto:894072666@qq.com&quot;</span>,<br>        &#125;,<br>        &#123;<br>          <span class="hljs-attr">iconClass</span>: <span class="hljs-string">&quot;icon-github&quot;</span>,<br>          <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;GitHub&quot;</span>,<br>          <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;https://github.com/xugaoyi&quot;</span>,<br>        &#125;,<br>        &#123;<br>          <span class="hljs-attr">iconClass</span>: <span class="hljs-string">&quot;icon-erji&quot;</span>,<br>          <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;听音乐&quot;</span>,<br>          <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;https://music.163.com/#/playlist?id=755597173&quot;</span>,<br>        &#125;,<br>      ],<br>    &#125;,<br>    <span class="hljs-attr">footer</span>: &#123;<br>      <span class="hljs-comment">// 页脚信息</span><br>      <span class="hljs-attr">createYear</span>: <span class="hljs-number">2019</span>, <span class="hljs-comment">// 博客创建年份</span><br>      <span class="hljs-attr">copyrightInfo</span>: <span class="hljs-string">&quot;Evan Xu | MIT License&quot;</span>, <span class="hljs-comment">// 博客版权信息，支持a标签</span><br>    &#125;,<br>  &#125;,<br><br>  <span class="hljs-comment">// 插件</span><br>  <span class="hljs-attr">plugins</span>: [<br>    [<span class="hljs-string">&quot;fulltext-search&quot;</span>], <span class="hljs-comment">// 全文搜索</span><br><br>    [<br>      <span class="hljs-string">&quot;vuepress-plugin-baidu-tongji&quot;</span>, <span class="hljs-comment">// 百度统计</span><br>      &#123;<br>        <span class="hljs-attr">hm</span>: baiduCode || <span class="hljs-string">&quot;01293bffa6c3962016c08ba685c79d78&quot;</span>,<br>      &#125;,<br>    ],<br><br>    [<br>      <span class="hljs-string">&quot;one-click-copy&quot;</span>,<br>      &#123;<br>        <span class="hljs-comment">// 代码块复制按钮</span><br>        <span class="hljs-attr">copySelector</span>: [<br>          <span class="hljs-string">&#x27;div[class*=&quot;language-&quot;] pre&#x27;</span>,<br>          <span class="hljs-string">&#x27;div[class*=&quot;aside-code&quot;] aside&#x27;</span>,<br>        ], <span class="hljs-comment">// String or Array</span><br>        <span class="hljs-attr">copyMessage</span>: <span class="hljs-string">&quot;复制成功&quot;</span>, <span class="hljs-comment">// default is &#x27;Copy successfully and then paste it for use.&#x27;</span><br>        <span class="hljs-attr">duration</span>: <span class="hljs-number">1000</span>, <span class="hljs-comment">// prompt message display time.</span><br>        <span class="hljs-attr">showInMobile</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// whether to display on the mobile side, default: false.</span><br>      &#125;,<br>    ],<br>    [<br>      <span class="hljs-string">&quot;demo-block&quot;</span>,<br>      &#123;<br>        <span class="hljs-comment">// demo演示模块 https://github.com/xiguaxigua/vuepress-plugin-demo-block</span><br>        <span class="hljs-attr">settings</span>: &#123;<br>          <span class="hljs-comment">// jsLib: [&#x27;http://xxx&#x27;], // 在线示例(jsfiddle, codepen)中的js依赖</span><br>          <span class="hljs-comment">// cssLib: [&#x27;http://xxx&#x27;], // 在线示例中的css依赖</span><br>          <span class="hljs-comment">// vue: &#x27;https://jsd.cdn.zzko.cn/npm/vue/dist/vue.min.js&#x27;, // 在线示例中的vue依赖</span><br>          <span class="hljs-attr">jsfiddle</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// 是否显示 jsfiddle 链接</span><br>          <span class="hljs-attr">codepen</span>: <span class="hljs-literal">true</span>, <span class="hljs-comment">// 是否显示 codepen 链接</span><br>          <span class="hljs-attr">horizontal</span>: <span class="hljs-literal">false</span>, <span class="hljs-comment">// 是否展示为横向样式</span><br>        &#125;,<br>      &#125;,<br>    ],<br>    [<br>      <span class="hljs-string">&quot;vuepress-plugin-zooming&quot;</span>, <span class="hljs-comment">// 放大图片</span><br>      &#123;<br>        <span class="hljs-attr">selector</span>: <span class="hljs-string">&quot;.theme-vdoing-content img:not(.no-zoom)&quot;</span>,<br>        <span class="hljs-attr">options</span>: &#123;<br>          <span class="hljs-attr">bgColor</span>: <span class="hljs-string">&quot;rgba(0,0,0,0.6)&quot;</span>,<br>        &#125;,<br>      &#125;,<br>    ],<br>    [<br>      <span class="hljs-string">&quot;@vuepress/last-updated&quot;</span>, <span class="hljs-comment">// &quot;上次更新&quot;时间格式</span><br>      &#123;<br>        <span class="hljs-attr">transformer</span>: <span class="hljs-function">(<span class="hljs-params">timestamp, lang</span>) =&gt;</span> &#123;<br>          <span class="hljs-keyword">const</span> dayjs = <span class="hljs-built_in">require</span>(<span class="hljs-string">&quot;dayjs&quot;</span>); <span class="hljs-comment">// https://day.js.org/</span><br>          <span class="hljs-keyword">return</span> <span class="hljs-title function_">dayjs</span>(timestamp).<span class="hljs-title function_">format</span>(<span class="hljs-string">&quot;YYYY/MM/DD, HH:mm:ss&quot;</span>);<br>        &#125;,<br>      &#125;,<br>    ],<br>  ],<br><br>  <span class="hljs-attr">markdown</span>: &#123;<br>    <span class="hljs-comment">// lineNumbers: true,</span><br>    <span class="hljs-attr">extractHeaders</span>: [<span class="hljs-string">&quot;h2&quot;</span>, <span class="hljs-string">&quot;h3&quot;</span>, <span class="hljs-string">&quot;h4&quot;</span>, <span class="hljs-string">&quot;h5&quot;</span>, <span class="hljs-string">&quot;h6&quot;</span>], <span class="hljs-comment">// 提取标题到侧边栏的级别，默认[&#x27;h2&#x27;, &#x27;h3&#x27;]</span><br>  &#125;,<br>&#125;;<br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20231206215939559.png" alt="image-20231206215939559"></p>
<h3 id="Gitee-部署-1"><a href="#Gitee-部署-1" class="headerlink" title="Gitee 部署"></a>Gitee 部署</h3><ul>
<li>部署流程跟上面 Vuepress 文档站点部署是一样样的：</li>
</ul>
<blockquote>
<p>配置远程仓库地址 -&gt; 打包 -&gt; 推送至远程仓库 -&gt; 开启 Gitee Pages 服务</p>
</blockquote>
<p>值得注意的是，不论是执行 <code>yarn dev</code> 还是 <code>yarn build</code>，都会有<strong>这样的友好提示</strong>（这也是和 Vuepress 不同的地方）：</p>
<p><img src="http://blog.memory-life.xyz/image-20231206164726405.png" alt="image-20231206164726405"></p>
<p>按提示修改就行</p>
<h3 id="踩坑记录-1"><a href="#踩坑记录-1" class="headerlink" title="踩坑记录"></a>踩坑记录</h3><ul>
<li>一晚上遇到好些个坑，在 <code>config.js</code> 配置文件中指定 <code>base</code> 路径并打包完成后，在 <code>dist</code> 目录下执行以下命令：</li>
</ul>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><code class="hljs bash">serve<br></code></pre></td></tr></table></figure>

<ul>
<li>结果是这样（样式丢失）：<strong>（2023/12/06 晚）</strong></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231206165305532.png" alt="image-20231206165305532"></p>
<ul>
<li><p>这样是正常的，在推送 <code>dist</code> 目录下的文件到远程仓库的过程中，由于对 git 命令的不熟悉，一直<strong>被之前的提交记录所影响</strong></p>
</li>
<li><p>建议直接把打包后生成的 <code>dist</code> 目录<strong>剪切在一个干净的目录下</strong>，执行推送</p>
</li>
<li><h5 id="推送成功："><a href="#推送成功：" class="headerlink" title="推送成功："></a>推送成功：</h5></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231206221124915.png" alt="image-20231206221124915"></p>
<ul>
<li>开启 <code>Gitee Pages</code> 服务成功后，<strong>直接访问</strong>：<strong>（2023/12/06 晚）</strong></li>
</ul>
<p><img src="http://blog.memory-life.xyz/image-20231206221217820.png" alt="image-20231206221217820"></p>
<p><img src="http://blog.memory-life.xyz/image-20231206213451379.png" alt="image-20231206213451379"></p>
<h2 id="Vdoing-主题搭建文档站点"><a href="#Vdoing-主题搭建文档站点" class="headerlink" title="Vdoing 主题搭建文档站点"></a>Vdoing 主题搭建文档站点</h2><h3 id="Memory-Tools"><a href="#Memory-Tools" class="headerlink" title="Memory Tools"></a>Memory Tools</h3><ul>
<li>今日，<code>Memory-Tools 开发者文档</code>基本完成！效果如下：<strong>（2032/12/19 午）</strong></li>
</ul>
<p><img src="C:\Users\Lenovo\AppData\Roaming\Typora\typora-user-images\image-20231219134202831.png" alt="image-20231219134202831"></p>
<ul>
<li>查看详情，可点击跳转：<a target="_blank" rel="noopener" href="http://localhost:8080/memory-tools-docs/">Memory-Tools 开发者文档</a></li>
</ul>
<h3 id="MemorySearch-忆搜阁"><a href="#MemorySearch-忆搜阁" class="headerlink" title="MemorySearch 忆搜阁"></a>MemorySearch 忆搜阁</h3><p>今日，基本完成 <code>MemorySearch 忆搜阁</code> 的文档编写和网站首页制作！</p>
<p>网站首页使用 vuepress-theme-hope 主题：</p>
<p><img src="http://blog.memory-life.xyz/image-20240219110401147.png" alt="image-20240219110401147"></p>
<p>开发文档使用 vdoing 主题：</p>
<p><img src="http://blog.memory-life.xyz/image-20240219110100681.png" alt="image-20240219110100681"></p>
<p>使用 vdoing 主题搭建的 Vuepress 文档中，在 <code>config.js</code> 和 <code>index.md</code> 文件中，可分别修改文档<code>首页 LOGO</code> 和 <code>导航栏 LOGO</code>：</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br></pre></td><td class="code"><pre><code class="hljs js"><span class="hljs-variable language_">module</span>.<span class="hljs-property">exports</span> = &#123;<br>  <span class="hljs-attr">theme</span>: <span class="hljs-string">&quot;vdoing&quot;</span>, <span class="hljs-comment">// 使用依赖包主题</span><br>  <span class="hljs-comment">// theme: require.resolve(&#x27;../../vdoing&#x27;), // 使用本地主题 (先将vdoing主题文件下载到本地：https://github.com/xugaoyi/vuepress-theme-vdoing)</span><br>  <span class="hljs-attr">title</span>: <span class="hljs-string">&quot;MemorySearch 开发者文档&quot;</span>,<br>  <span class="hljs-attr">description</span>: <span class="hljs-string">&quot;🚀为简化开发而生&quot;</span>,<br>  <span class="hljs-attr">base</span>: <span class="hljs-string">&quot;/memory-search-docs/&quot;</span>, <span class="hljs-comment">// 默认&#x27;/&#x27;。如果你想将你的网站部署到如 https://foo.github.io/bar/，那么 base 应该被设置成 &quot;/bar/&quot;,（否则页面将失去样式等文件）</span><br>  <span class="hljs-comment">// 主题配置</span><br>  <span class="hljs-attr">themeConfig</span>: &#123;<br>    <span class="hljs-attr">nav</span>: [<br>      &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;首页&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/&quot;</span> &#125;,<br>      &#123;<br>        <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;操作指南&quot;</span>,<br>        <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span>,<br>        <span class="hljs-attr">items</span>: [<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;概述&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/52d5c3/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;系统设计&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/a2f161/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;维护升级&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/793dcb/&quot;</span> &#125;,<br>          &#123;<br>            <span class="hljs-attr">items</span>: [<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;高效多元搜索&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/346f3e/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;互动创作平台&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/94778b/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;流量统计分析&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/c0261e/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;个人中心管理&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfa99/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;资源全面管理&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfab5/&quot;</span> &#125;,<br>            ],<br>          &#125;,<br>        ],<br>      &#125;,<br>      &#123;<br>        <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;学习收获&quot;</span>,<br>        <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfad9/&quot;</span>,<br>        <span class="hljs-attr">items</span>: [<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;概览&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/8dfad9/&quot;</span> &#125;,<br>          &#123;<br>            <span class="hljs-attr">items</span>: [<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Ant Design Vue 脚手架&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/advjsj/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Vuepress 静态文档站点&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/vpjtwd/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;数据抓取&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/sjzq/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Elastic Stack 技术栈&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/esjsz/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;适配器模式&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/apqms/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;门面模式&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/mmms/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;注册器模式&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/zcqms/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;关键词语高亮&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/gjcygl/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;搜索词条建议&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ssctjy/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;热门搜索统计&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/rmsstj/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;热门话题分析&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/rmhtfx/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Logstash 数据同步管道&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/lssjtbgd/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Canal 监控数据库流水&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/cjksjkls/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Kibana 数据监控面板&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ksjjkmb/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;限流策略&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/xlcl/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Redis 缓存优化&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/rhcyh/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;Knife4j &amp; Swagger 接口文档&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ksjkwd/&quot;</span> &#125;,<br><br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;定时任务调度&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/dsrwdd/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;权限校验机制&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/qxjyjz/&quot;</span> &#125;,<br>              &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;异步编程支持&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/ybbczc/&quot;</span> &#125;,<br>            ],<br>          &#125;,<br>        ],<br>      &#125;,<br>      <span class="hljs-comment">// &#123; text: &quot;案例&quot;, link: &quot;/pages/5d571c/&quot; &#125;,</span><br>      &#123;<br>        <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;问题答疑&quot;</span>,<br>        <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/9cc27d/&quot;</span>,<br>        <span class="hljs-attr">items</span>: [<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;简介&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/9cc27d/&quot;</span> &#125;,<br>          &#123; <span class="hljs-attr">text</span>: <span class="hljs-string">&quot;常见问题与解答&quot;</span>, <span class="hljs-attr">link</span>: <span class="hljs-string">&quot;/pages/9cc288/&quot;</span> &#125;,<br>        ],<br>      &#125;,<br>      <span class="hljs-comment">// &#123; text: &quot;赞助&quot;, link: &quot;/pages/1b12ed/&quot; &#125;,</span><br>    ],<br>    <span class="hljs-attr">sidebarDepth</span>: <span class="hljs-number">2</span>, <span class="hljs-comment">// 侧边栏显示深度，默认1，最大2（显示到h3标题）</span><br>    <span class="hljs-attr">logo</span>: <span class="hljs-string">&quot;/img/logo.png&quot;</span>, <span class="hljs-comment">// 导航栏logo</span><br>    <span class="hljs-attr">repo</span>: <span class="hljs-string">&quot;xugaoyi/vuepress-theme-vdoing&quot;</span>, <span class="hljs-comment">// 导航栏右侧生成Github链接</span><br>    <span class="hljs-attr">searchMaxSuggestions</span>: <span class="hljs-number">10</span>, <span class="hljs-comment">// 搜索结果显示最大数</span><br>    <span class="hljs-attr">lastUpdated</span>: <span class="hljs-string">&quot;上次更新&quot;</span>, <span class="hljs-comment">// 更新的时间，及前缀文字   string | boolean (取值为git提交时间)</span><br><br></code></pre></td></tr></table></figure>

<figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><code class="hljs yaml"><span class="hljs-meta">---</span><br><span class="hljs-attr">home:</span> <span class="hljs-literal">true</span><br><span class="hljs-attr">heroImage:</span> <span class="hljs-string">/img/logo.png</span><br><span class="hljs-attr">heroText:</span> <span class="hljs-string">MemorySearch</span> <span class="hljs-string">开发者文档</span><br><span class="hljs-attr">tagline:</span> <span class="hljs-string">🚀为简化开发而生</span><br><span class="hljs-attr">actionText:</span> <span class="hljs-string">开始使用</span> <span class="hljs-string">→</span><br><span class="hljs-attr">actionLink:</span> <span class="hljs-string">/pages/52d5c3/</span><br><span class="hljs-attr">bannerBg:</span> <span class="hljs-string">none</span> <span class="hljs-comment"># auto =&gt; 网格纹背景(有bodyBgImg时无背景)，默认 | none =&gt; 无 | &#x27;大图地址&#x27; | background: 自定义背景样式       提示：如发现文本颜色不适应你的背景时可以到palette.styl修改$bannerTextColor变量</span><br><br></code></pre></td></tr></table></figure>

<p><img src="http://blog.memory-life.xyz/image-20240219105642175.png" alt="image-20240219105642175"></p>
<h2 id="严重问题"><a href="#严重问题" class="headerlink" title="严重问题"></a>严重问题</h2><blockquote>
<p>2024 年 4 月 29 日</p>
</blockquote>
<p><img src="http://blog.memory-life.xyz/image-20240429084945308.png" alt="image-20240429084945308"></p>
<p><img src="http://blog.memory-life.xyz/image-20240429085809381.png" alt="image-20240429085809381"></p>
<p><img src="http://blog.memory-life.xyz/image-20240429085813430.png" alt="image-20240429085813430"></p>
<p><img src="http://blog.memory-life.xyz/image-20240429090001153.png" alt="image-20240429090001153"></p>
<h2 id="基础知识"><a href="#基础知识" class="headerlink" title="基础知识"></a>基础知识</h2><blockquote>
<p>2023 年 6 月 24 日</p>
</blockquote>
<h3 id="Gitee-基础知识和使用"><a href="#Gitee-基础知识和使用" class="headerlink" title="Gitee 基础知识和使用"></a>Gitee 基础知识和使用</h3><ul>
<li>注册和创建 Gitee 账号</li>
<li>创建新的仓库（Repository）</li>
<li>了解仓库的组成和功能，例如分支、提交记录等</li>
<li>熟悉仓库的基础操作，如上传和下载文件、提交和同步代码等</li>
</ul>
<h3 id="Gitee-Page-服务简介"><a href="#Gitee-Page-服务简介" class="headerlink" title="Gitee Page 服务简介"></a>Gitee Page 服务简介</h3><ul>
<li>介绍 Gitee 的 Page 服务，它是什么以及它的作用</li>
<li>解释 Page 服务的原理和运行机制</li>
<li>简要介绍 Page 服务的特性，如自动部署、自定义域名等</li>
</ul>
<h3 id="托管静态网站的步骤和实践"><a href="#托管静态网站的步骤和实践" class="headerlink" title="托管静态网站的步骤和实践"></a>托管静态网站的步骤和实践</h3><ul>
<li>准备网站目录和静态资源</li>
<li>在 Gitee 仓库中创建和组织网站文件的结构</li>
<li>配置 Page 服务并将网站部署到 Gitee 仓库</li>
<li>详细说明自定义域名、HTTPS 等高级配置选项</li>
</ul>
<h3 id="最佳实践和常见问题解答"><a href="#最佳实践和常见问题解答" class="headerlink" title="最佳实践和常见问题解答"></a>最佳实践和常见问题解答</h3><ul>
<li>分享一些使用 Gitee 托管静态网站的最佳实践和技巧</li>
<li>解答常见问题，如如何自动构建、如何更新网站内容等</li>
</ul>
<h3 id="Gitee-托管"><a href="#Gitee-托管" class="headerlink" title="Gitee 托管"></a>Gitee 托管</h3><p><img src="http://blog.memory-life.xyz/image-20230702152240718.png" alt="image-20230702152240718"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702152844439.png" alt="image-20230702152844439"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702152910555.png" alt="image-20230702152910555"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702153051903.png" alt="image-20230702153051903"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702153115901.png" alt="image-20230702153115901"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702153134983.png" alt="image-20230702153134983"></p>
<p><img src="http://blog.memory-life.xyz/image-20230702153211860.png" alt="image-20230702153211860"></p>
<h1 id="总结"><a href="#总结" class="headerlink" title="总结"></a>总结</h1><blockquote>
<p>2023 年 6 月 24 日</p>
</blockquote>
<p>总结使用 Gitee 的 Page 服务托管静态网站的优势和便利性。</p>
<p>强调 Gitee 作为开源社区的重要性，并鼓励读者尝试使用 Gitee 进行项目和网站托管。</p>

                
              </div>
            
            <hr/>
            <div>
              <!-- 文章页面 - 底部标签 -->
<div class="post-metas my-3">
  
  <div class="post-meta mr-3 d-flex align-items-center">
    <i class="iconfont icon-category"></i>
    <!-- 归档页 - 文章列表 -->


<span class="category-chains">
  
  
    
      <span class="category-chain">
        
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/" class="category-chain-item">个人博客</a>
  
  
    <span>></span>
    
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/%E4%BB%A3%E7%A0%81%E9%94%8B%E8%8A%92/" class="category-chain-item">代码锋芒</a>
  
  
    <span>></span>
    
  <a href="/blog/categories/%E4%B8%AA%E4%BA%BA%E5%8D%9A%E5%AE%A2/%E4%BB%A3%E7%A0%81%E9%94%8B%E8%8A%92/%E9%83%A8%E7%BD%B2%E4%B9%8B%E9%81%93/" class="category-chain-item">部署之道</a>
  
  

  

  

      </span>
    
  
</span>

  </div>
   
  <div class="post-meta">
    <i class="iconfont icon-tags"></i>
    
    <a href="/blog/tags/%E7%BB%8F%E9%AA%8C/">#经验</a>
    
    <a href="/blog/tags/%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8/">#云服务器</a>
    
    <a href="/blog/tags/Blog/">#Blog</a>
    
    <a href="/blog/tags/%E6%96%87%E6%A1%A3%E7%AB%99%E7%82%B9/">#文档站点</a>
    
  </div>
  
</div>


              <!-- 文章页面 - 底部标签下方 -->

  
  <div class="license-box my-3">
    <div class="license-title">
      <div>大道至简：快速搭建博客与文档站点的终极指南2.0</div>
      <div>https://test.atomgit.net/blog/2023/06/24/大道至简：快速搭建博客与文档站点的终极指南2.0/</div>
    </div>
    <div class="license-meta">
      
        <div class="license-meta-item">
          <div>作者</div>
          <div>Memory</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>发布于</div>
          <div>2023年6月24日</div>
        </div>
      
      
        <div class="license-meta-item license-meta-date">
          <div>更新于</div>
          <div>2025年12月2日</div>
        </div>
      
      
        <div class="license-meta-item">
          <div>许可协议</div>
          <div>
            
              
              
                <a target="_blank" href="https://creativecommons.org/licenses/by/4.0/">
                  <span class="hint--top hint--rounded" aria-label="BY - 署名">
                    <i class="iconfont icon-by"></i>
                  </span>
                </a>
              
            
          </div>
        </div>
      
    </div>
    <div class="license-icon iconfont"></div>
  </div>



              
                <div class="post-prevnext my-3">
                  <article class="post-prev col-6">
                    
                    
                      <a href="/blog/2023/06/24/%E4%BD%BF%E7%94%A8%20JSP%20%E6%9E%84%E5%BB%BA%20JavaWeb%20%E9%A1%B9%E7%9B%AE-%E4%BB%A5%E6%95%B0%E6%8D%AE%E5%BA%93%E5%A4%A7%E4%BD%9C%E4%B8%9A%E4%B8%BA%E4%BE%8B/" title="使用JSP构建JavaWeb项目--以数据库大作业为例">
                        <i class="iconfont icon-arrowleft"></i>
                        <span class="hidden-mobile">使用JSP构建JavaWeb项目--以数据库大作业为例</span>
                        <span class="visible-mobile">上一篇</span>
                      </a>
                    
                  </article>
                  <article class="post-next col-6">
                    
                    
                      <a href="/blog/2023/06/24/%E9%85%8D%E7%BD%AE%E6%8C%87%E5%8D%97-%E6%8E%8C%E6%8F%A1Node-js%E9%85%8D%E7%BD%AE/" title="配置指南-掌握Node.js配置">
                        <span class="hidden-mobile">配置指南-掌握Node.js配置</span>
                        <span class="visible-mobile">下一篇</span>
                        <i class="iconfont icon-arrowright"></i>
                      </a>
                    
                  </article>
                </div>
              
            </div>

            <!-- 文章页 - 评论上方 -->

  
  
    <article id="comments">
      
  <div id="valine"></div>
  <script type="text/javascript">
    Fluid.utils.loadComments('#valine', function() {
      Fluid.utils.createScript('https://cdn.jsdelivr.net/gh/HCLonely/Valine@latest/dist/Valine.min.js', function() {
        var options = Object.assign(
          {"appId":"T1hUHH9Ks1ggG9DBE3HgUPpV-gzGzoHsz","appKey":"XFkgzzvzNo3J3uNCbBiSOFKc","path":"window.location.pathname","placeholder":"填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ","avatar":"Gravatar","meta":["nick","mail","link"],"requiredFields":[],"pageSize":10,"lang":"zh-CN","highlight":true,"recordIP":false,"serverURLs":"https://t1huhh9k.lc-cn-n1-shared.com","emojiCDN":null,"emojiMaps":null,"enableQQ":true,"master":"8c9b6d6637904da62d74d019cc6982de","friends":"0188229a9cfc284176ea9135cb9514cc","visitor":true},
          {
            el: "#valine",
            path: window.location.pathname,
            app_id: "",
            app_key: "",
            placeholder: "填取QQ号和邮箱后评论，支持读取头像及消息提醒，留下点什么叭... ᶘ ᵒᴥᵒᶅ",
            avatar: "Gravatar",
            meta: ["nick","mail","link"],
            pageSize: "10",
            lang: "zh-CN",
            highlight: true,
            recordIP: false,
            serverURLs: "https://t1huhh9k.lc-cn-n1-shared.com",

            // 设置Bilibili表情包地址
            emojiCDN: '//i0.hdslb.com/bfs/emote/', 
            // 表情title和图片映射
            emojiMaps: {
                "tv_白眼": "48f75163437445665a9be80bb316e4cb252c5415.gif@48w_48h.webp",
                "tv_doge": "302d6c88c63ed162c81a49cafe7ed2709e6fb955.gif@48w_48h.webp",
                "tv_坏笑": "5d2572efd09aab5dde9e2a198bb3f9ac1e2a982e.gif@48w_48h.webp",
                "tv_难过": "9c6b41008a67755410f712334c64313df5f91b3f.gif@48w_48h.webp",
                "tv_生气": "1902a5a2df5b5c931d88c12f0feb264b1e109d0d.gif@48w_48h.webp",
                "tv_委屈": "af5a5853edb43a8178a8cb5df707fa5e88143699.gif@48w_48h.webp",
                "tv_斜眼笑": "c66568b471192ca1f62f6ed4384dc1b283ab7508.gif@48w_48h.webp",
                "tv_呆": "d3fa91e4db9215eb1e20ab9da44f1214aa4bda7b.gif@48w_48h.webp",
                "tv_发怒": "3959eb81b952e4fa8d269d98f9e3639172d84073.gif@48w_48h.webp",
                "tv_呕吐": "db58e9442aae26694af18cc1683607cca3a16763.gif@48w_48h.webp",
                "tv_思考": "b63f9146bfd985af014f8d6d4bdb498805be48f9.gif@48w_48h.webp",
                "tv_微笑": "b98656855d782f61cb8edc7f7fca6563ecafff7e.gif@48w_48h.webp",
                "tv_疑问": "fce1b1a0f3b0e39a2dc16a18508dba7b91e929f4.gif@48w_48h.webp",
                "tv_大哭": "cba61f05f3039b02a7ffc0dfcd9d7995df9fdd74.gif@48w_48h.webp",
                "tv_鼓掌": "be106e6b265883a9f28fbe10f7b765701e2618d4.gif@48w_48h.webp",
                "tv_抠鼻": "696d9f93e722144dc2a78aeffc569418fdf3d565.gif@48w_48h.webp",
                "tv_亲亲": "3534ea44ab74bd20352b88c245a06c4b4c46d271.gif@48w_48h.webp",
                "tv_调皮": "fcd967395fd14e4dd5829fa7e8a967ce23205e52.gif@48w_48h.webp",
                "tv_笑哭": "1c2fd1e8c9dde12812f86e5d4cbddd8993d98082.gif@48w_48h.webp",
                "tv_晕": "030040ec5c9ddc9e3d067658c4139e7314ab42f8.gif@48w_48h.webp",
                "tv_点赞": "30ecff401245fb56bcc1cf588d1809ac1ab1607c.gif@48w_48h.webp",
                "tv_害羞": "411a3e459e8580f5bfd9f639a408247c4b509935.gif@48w_48h.webp",
                "tv_睡着": "3c8b5e293261287a6203597e29b3de07df4d18c6.gif@48w_48h.webp",
                "tv_色": "a0c6d99ab0ab63b8648f5283ff72cec04b604828.gif@48w_48h.webp",
                "tv_吐血": "e17e4539e169d14a3389ff147afea760cebe5de5.gif@48w_48h.webp",
                "tv_无奈": "eb4cb5f07cfd177c7e6a7914316717e56d9cc1d0.gif@48w_48h.webp",
                "tv_再见": "344f61609ecce2008520dc8a977b6169215748a9.gif@48w_48h.webp",
                "tv_流汗": "390bccec65eaff536bd5bb2a0c5b8b0bdea47334.gif@48w_48h.webp",
                "tv_偷笑": "7f11e6f7f63e79112b833bd41fa13a83d7cd8474.gif@48w_48h.webp",
                "tv_抓狂":"a476b93ecd8e94ac3257323fd822f91cef212de2.gif@48w_48h.webp",
                "tv_黑人问号":"b609adf664be33224a9923262031165ae3e34cd2.gif@48w_48h.webp",
                "tv_困":"91c2bf34ecf842d7016c01d841db3d4074bd281f.gif@48w_48h.webp",
                "tv_打脸":"b0fad4856e59c1240e448437da3287bb5ce547e5.gif@48w_48h.webp",
                "tv_闭嘴":"a3fc5388b09e945be3f18fe23bfed5874a0285b7.gif@48w_48h.webp",
                "tv_鄙视":"293b5d459e6264ecf314d20937a936fa672ccd1e.gif@48w_48h.webp",
                "tv_腼腆":"30984e8264324f901d19bea85dada7103b695534.gif@48w_48h.webp",
                "tv_馋":"2525c5703c594e5f0752f68db8948773caebde47.gif@48w_48h.webp",
                "tv_可爱":"f92d20f76258bc5f33fc9d7c5e2a1d41fef19a7c.gif@48w_48h.webp",
                "tv_发财":"76131e52c9b033681b4c896c6024d29ef7ec7ec2.gif@48w_48h.webp",
                "tv_生病":"beb94829fe04f1a41bd6ca611e1f6ca9ca169afa.gif@48w_48h.webp",
                "tv_流鼻血":"8ef473f74a849420da712487b2f56ecca1f695f5.gif@48w_48h.webp",
                "tv_尴尬":"e0b84ef5ee3e5b8978e584c7c5a6550c51d15f84.gif@48w_48h.webp",
                "tv_大佬":"14ca0c05382b8741940942b2430b7a8d55c02f7e.gif@48w_48h.webp",
                "tv_流泪":"7e71cde7858f0cd50d74b0264aa26db612a8a167.png@48w_48h.webp",
                "tv_冷漠":"b9cbc755c2b3ee43be07ca13de84e5b699a3f101.png@48w_48h.webp",
                "tv_皱眉":"72ccad6679fea0d14cce648b4d818e09b8ffea2d.png@48w_48h.webp",
                "tv_鬼脸":"0ffbbddf8a94d124ca2f54b360bbc04feb6bbfea.png@48w_48h.webp",
                "tv_调侃":"4bc022533ef31544ca0d72c12c808cf4a1cce3e3.png@48w_48h.webp",
                "tv_目瞪口呆":"0b8cb81a68de5d5365212c99375e7ace3e7891b7.png@48w_48h.webp",
            },

            master: "8c9b6d6637904da62d74d019cc6982de",
            friends: "0188229a9cfc284176ea9135cb9514cc",
            tagMeta: ["博主","友人","访客"],
            visitor: true // 阅读量统计
          }
        )
        new Valine(options);
        Fluid.utils.waitElementVisible('#valine .vcontent', () => {
          var imgSelector = '#valine .vcontent img:not(.vemoji)';
          Fluid.plugins.imageCaption(imgSelector);
          Fluid.plugins.fancyBox(imgSelector);
        })
      });
    });
  </script>
  <noscript>Please enable JavaScript to view the comments</noscript>


    </article>
  


          </article>
        </div>
      </div>
    </div>

    <div class="side-col d-none d-lg-block col-lg-2">
      <!-- 文章页面 - 右侧目录 -->

  <aside class="sidebar" style="margin-left: -1rem">
    <!-- 文章页面 - 右侧目录上方 -->
<div id="toc">
  <p class="toc-header">
    <i class="iconfont icon-list"></i>
    <span>目录</span>
  </p>
  <div class="toc-body" id="toc-body"></div>
</div>



  </aside>



    </div>
  </div>
</div>





  



  



  



  



  







    

    
      <a id="scroll-top-button" aria-label="TOP" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <!-- 博客 - 搜索框 -->
<div
  class="modal fade"
  id="modalSearch"
  tabindex="-1"
  role="dialog"
  aria-labelledby="ModalLabel"
  aria-hidden="true"
>
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">
          搜索
        </h4>
        <button
          type="button"
          id="local-search-close"
          class="close"
          data-dismiss="modal"
          aria-label="Close"
        >
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input
            type="text"
            id="local-search-input"
            class="form-control validate"
          />
          <label data-error="x" data-success="v" for="local-search-input"
            >关键词</label
          >
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>

    

    
        <div class="modal fade" id="modalNotice" tabindex="-1" role="dialog" aria-hidden="true"
     style="font-family: 'Ma Shan Zheng', cursive; color: #ffffff;">
    <div class="modal-dialog modal-dialog-scrollable" role="document"
         style="font-family: 'Ma Shan Zheng', cursive;">
        <div class="modal-content" style="border-radius: 6px;">
            <!-- 公告头部 - 响应式设计 -->
            <div class="modal-header text-center"
                 style="padding: 1rem 1.5rem;border-bottom: 1px solid rgba(255,255,255,0.2)">
                <h4 class="modal-title w-100 font-weight-bold"
                    style="font-family: 'Microsoft YaHei', sans-serif;letter-spacing: 1px;text-shadow: 1px 1px 2px rgba(0,0,0,0.2);color: #ffffff;
                           font-size: 1.5rem; /* 默认PC端大小 */
                           /* 移动端适配 */
                           @media (max-width: 768px) {
                               font-size: 1.2rem;
                           }">
                    <div class="notice-title">
                        <i class="fas fa-bullhorn mr-2"> 围栏告示</i>
                    </div>
                    <small style="display: block; font-family: 'STKaiti', serif; font-size: 0.6em; color: #a0a0a0; margin-top: 3px;">
                        旧梦轻拾 · 谨识
                    </small>
                </h4>
            </div>

            <!-- 公告内容区 - 响应式设计 -->
            <div class="modal-body"
                 style="padding: 2rem; /* PC端 */
                        max-height: 70vh;
                        overflow-y: auto;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 1rem;
                            max-height: 60vh;
                        }">
                <!-- 图片容器（响应式设计） -->
                <!--                <div class="announcement-hero"-->
                <!--                     style="margin-bottom: 2rem; /* PC端 */-->
                <!--                            /* 移动端适配 */-->
                <!--                            @media (max-width: 768px) {-->
                <!--                                margin-bottom: 1rem;-->
                <!--                            }">-->
                <!--                    <img src="http://blog.memory-life.icu/%E3%80%90%E5%93%B2%E9%A3%8E%E5%A3%81%E7%BA%B8%E3%80%91%E5%8A%A8%E6%BC%AB-%E5%A4%95%E9%98%B3%E9%93%81%E8%BD%A8.jpg"-->
                <!--                         alt="时光溯洄题图"-->
                <!--                         style="width: 100%; -->
                <!--                                max-height: 400px; /* PC端 */-->
                <!--                                object-fit: cover;-->
                <!--                                border-radius: 4px; -->
                <!--                                box-shadow: 0 2px 12px rgba(0,0,0,0.1);-->
                <!--                                /* 移动端适配 */-->
                <!--                                @media (max-width: 768px) {-->
                <!--                                    max-height: 30vh;-->
                <!--                                }"-->
                <!--                         loading="lazy">-->
                <!--                </div>-->

                <!-- 静态公告列表 - 响应式设计 -->
                <div class="announcement-list">
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #d38532;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-calendar-check mr-2"></i>时光溯洄
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                晨昏往事</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 内容保持不变 -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">你好。</p>
                            <!-- 其余段落内容... -->
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                建站后的第813天，在百忙之中总算又能抽出时间来，对整个博客站点功能做整体的规划及优化完善。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                在刚刚过去的几年时间里，往事皆以笔墨挥毫于时光素笺之上，数百天如一日，故事的书写从未间断过。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-style: italic; color: #b8b8b8;">
                                时光悠悠，日月如流，过往的蹉跎岁月总在不经意间在心间回眸。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                俯仰之间，轻舟已过万重山。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em; font-weight: 500; color: #ffffff;">
                                蹉跎之处，往事皆成云烟散。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光过得太快了，好像过去这段岁月里的所有事情都发生在一瞬间。</p>
                            <p style="margin-bottom: 1rem; text-indent: 2em;">
                                这几年的时光同样太久了，久到那些时日里仿佛囊括了自己的整个前半生。</p>
                            <p style="margin-bottom: 0; text-align: right; font-size: 0.95rem; color: #a0a0a0;">——
                                八百余个昼夜，当时只道是地久天长，如今回望，不过浮光掠影间的一瞬。</p>
                        </div>
                    </div>

                    <!-- 第二个公告项 - 响应式设计 -->
                    <div class="announcement-item"
                         style="margin-bottom: 2rem; /* PC端 */
                                padding: 2rem;
                                background: rgba(255,255,255,0.05);
                                border-radius: 8px;
                                /* 移动端适配 */
                                @media (max-width: 768px) {
                                    margin-bottom: 1rem;
                                    padding: 1rem;
                                }">
                        <h2 style="color: #6cc70b;
                                  font-weight: 600;
                                  font-size: 1.5rem; /* PC端 */
                                  margin-bottom: 1.2rem;
                                  letter-spacing: 0.5px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      font-size: 1.2rem;
                                      margin-bottom: 1rem;
                                  }">
                            <i class="fas fa-book-open mr-2"></i>墨痕新注
                            <small style="display: block; font-size: 0.6em; color: #b8b8b8;text-align: right;">——
                                待起之章</small>
                        </h2>
                        <div style="color: #e0e0e0;
                                  line-height: 1.8; /* PC端 */
                                  font-size: 1.05rem;
                                  letter-spacing: 0.3px;
                                  /* 移动端适配 */
                                  @media (max-width: 768px) {
                                      line-height: 1.6;
                                      font-size: 0.95rem;
                                  }">
                            <!-- 列表内容 - 响应式设计 -->
                            <ul style="padding-left: 1.8rem; /* PC端 */
                                      margin-bottom: 1.5rem;
                                      /* 移动端适配 */
                                      @media (max-width: 768px) {
                                          padding-left: 1.5rem;
                                          margin-bottom: 1.2rem;
                                      }">
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">溯源计划：</span>新增博文"溯源计划"，旨在用先进的数字技术留住过去的旧时光，让家族的记忆在数字云端生长发芽，全站博文数量已达90+。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">围栏告示：</span>自去年夏天站点新增了“评论回复”功能后，至今时隔十余月，在芒种前夕本站久违地上线“围栏告示”功能，本公告栏会不定时更新，持续跟进记录最新站点功能调整日志，更多精彩内容请敬请期待。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">图片查看：</span>最近几周时间里，考虑到图文流量费用收取问题，暂时关闭了七牛云对象存储私有空间访问权限，故博文内的图文无法正常预览，择日考虑开启访问权限。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">壁纸下载：</span>后续计划实现壁纸下载功能，均为个人收集的共150+超高分辨率精美壁纸，提供在线预览以及下载功能。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">阅读体验：</span>规划完善文章内分页功能，并提供“最近更新”的文章列表，计划收录更新率较高的文章，譬如：阳台日记、叙事之外、岁月如歌、游戏人生等等，尽可能多的提升在线浏览和阅读体验。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">友链完善：</span>持续优化完善友链页面，整理归档个人常用的高质量网站合集，无偿分享给有缘人。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">音乐餐厅：</span>历经十余小时不间断调研和尝试，本站成功上线”音乐餐厅”功能，目前仅收录了个人在QQ音乐平台积累的两份歌单，再匆忙也要记得点播一首喜欢的音乐，没有音乐熏陶的心灵终究是充满缺憾的。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">三言两语：</span>每张照片都是时光的便签，随手一贴就记下了那天，本站结合Mamos实现并注入留言板功能，随缘记录那些藏在照片背后的故事。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">旧梦轻拾：</span>更新全站博客文章所属分类，共设有代码锋芒、部署之道、旧梦轻拾、人间片刻等十余种分类。
                                </li>
                                <li style="margin-bottom: 0.8rem; /* PC端 */
                                         position: relative;
                                         list-style-type: none;
                                         /* 移动端适配 */
                                         @media (max-width: 768px) {
                                             margin-bottom: 0.6rem;
                                         }">
                                    <span style="position: absolute;
                                               left: -1.8rem; /* PC端 */
                                               color: #6cc70b;
                                               /* 移动端适配 */
                                               @media (max-width: 768px) {
                                                   left: -1.5rem;
                                               }">◆</span>
                                    <span style="font-weight: bolder;">方寸之间：</span>博客应用版发布，更便捷的阅读体验来了！现已正式推出独立的桌面应用程序与移动端应用程序，暂时通过网盘和代码库提供安装包。
                                </li>
                                <p style="margin-bottom: 0; text-align: right; font-size: 0.9rem; color: #8a8a8a;">
                                    此公告最后更新于：<span style="color: #6cc70b;">2025/09/30晚</span>
                                </p>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 公告页脚 - 响应式设计 -->
            <div class="modal-footer"
                 style="border-top: 1px solid rgba(255,255,255,0.2);
                        padding: 1rem 1.5rem; /* PC端 */
                        justify-content: space-between;
                        /* 移动端适配 */
                        @media (max-width: 768px) {
                            padding: 0.8rem;
                        }">
                <small style="color: #ffffff;
                            font-size: 0.9rem; /* PC端 */
                            /* 移动端适配 */
                            @media (max-width: 768px) {
                                font-size: 0.8rem;
                            }">
                    <i class="iconfont icon-pen"></i>
                    <i class="fas fa-info-circle mr-1"></i>芒种前夕 · 旅途第813天
                    · 2025/05/28
                </small>
                <button id="confirm-btn" type="button" class="btn btn-sm" data-dismiss="modal"
                        style="background: #a0a0a0;
                               color: #ffffff;
                               border-radius: 4px;
                               padding: 0.5rem 1.2rem; /* PC端 */
                               border: none;
                               font-size: 0.9rem;
                               /* 移动端适配 */
                               @media (max-width: 768px) {
                                   padding: 0.3rem 0.8rem;
                                   font-size: 0.85rem;
                               }">
                    <i class="fas fa-check mr-1" style="color: #ffffff;">心已阅</i>
                </button>
            </div>
        </div>
    </div>
</div>

<style>
  .notice-title {
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .notice-title:before,
  .notice-title:after {
    content: "";
    flex: 1;
    height: 1px;
    background: #ddd; /* 横线颜色 */
    margin: 0 10px; /* 横线与文字的间距 */
  }
</style>


<style>
  /* 响应式模态框宽度 */
  @media (min-width: 992px) {
    #modalNotice .modal-dialog {
      max-width: 800px;
    }
  }

  @media (max-width: 991px) {
    #modalNotice .modal-dialog {
      margin: 0.5rem auto;
    }
  }
</style>

<script>
  // 页面加载完成后执行
  document.addEventListener('DOMContentLoaded', function () {
    // 检查是否首次访问
    if (!localStorage.getItem('hasShownPopup')) {
      // 动态加载notice.ejs内容
      fetch('_partials/notice.ejs')  // 替换为实际路径
        .then(response => response.text())
        .then(html => {
          // 插入到页面body末尾
          document.body.insertAdjacentHTML('beforeend', html);

          // 手动初始化Bootstrap模态框
          $('#modalNotice').modal('show');

          // 标记为已显示
          localStorage.setItem('hasShownPopup', 'true');

          // 监听关闭事件
          $('#modalNotice').on('hidden.bs.modal', function () {
            // 可选的后续处理
          });
        })
        .catch(error => {
          console.error('加载公告栏失败:', error);
          // 备用方案：显示简单弹窗
          const fallbackHTML = `
                <div class="modal-backdrop" style="/* 样式 */">
                    <div class="modal-content">/* 内容 */</div>
                </div>`;
          document.body.insertAdjacentHTML('beforeend', fallbackHTML);
        });
    }
  });
</script>

    

    
  </main>

  <footer>
    <!-- 博客 - 页脚 -->
<div class="footer-inner">
  
    <div class="footer-content">
       <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>Memory | 个人文档站点</span> </a>
<i class="iconfont icon-love"></i> <a href="https://hexo.fluid-dev.com/docs/guide/" target="_blank" rel="nofollow noopener"> <span>配置指南 | Hexo Fluid 用户手册</span> </a> 
    </div>
  

  

  
    <!-- 备案信 ICP for China -->
    <div class="beian">
  <span>
    <a href="http://beian.miit.gov.cn/" target="_blank" rel="nofollow noopener">
      京ICP证123456号
    </a>
  </span>
  
    
      <span>
        <a
          href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=12345678"
          rel="nofollow noopener"
          class="beian-police"
          target="_blank"
        >
          
            <span style="visibility: hidden; width: 0">|</span>
            <img src="/blog/img/police_beian.png" alt="police-icon"/>
          
          <span>京公网安备12345678号</span>
        </a>
      </span>
    
  
</div>

  

  

</div>

<!-- 评论框美化 -->
<style>
    #comments .veditor{
        min-height: 20vh;
        background-image: url(http://blog.memory-life.icu/pathway0716.jpg);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: right;
        background-color: rgba(255,255,255,0);
        resize: none;}
</style>

<script>
    //   自定义邮箱审核规则
    document.body.addEventListener('click', function(e) {
        if (e.target.classList.contains('vsubmit')) {
            const email = document.querySelector('input[type=email]');
            const nick = document.querySelector('input[name=nick]');
            const reg = /^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/;
            if (!email.value || !nick.value || !reg.test(email.value)) {
                const str = `<div class="valert text-center"><div class="vtext">请填写正确的昵称和邮箱！</div></div>`;
                const vmark = document.querySelector('.vmark');
                vmark.innerHTML = str;
                vmark.style.display = 'block';
                setTimeout(function() {
                    vmark.style.display = 'none';
                    vmark.innerHTML = '';
                }, 2500);
            }
        }
    })
</script>



  </footer>

  <!-- Scripts -->
  
  <script  src="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://lib.baomitu.com/nprogress/0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://lib.baomitu.com/jquery/3.6.0/jquery.min.js" ></script>
<script  src="https://lib.baomitu.com/twitter-bootstrap/4.6.1/js/bootstrap.min.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>


  <script  src="https://lib.baomitu.com/typed.js/2.0.12/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var subtitle = document.getElementById('subtitle');
      if (!subtitle || !typing) {
        return;
      }
      var text = subtitle.getAttribute('data-typed-text');
      
        typing(text);
      
    })(window, document);
  </script>







  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/tocbot/4.18.2/tocbot.min.js', function() {
    var toc = jQuery('#toc');
    if (toc.length === 0 || !window.tocbot) { return; }
    var boardCtn = jQuery('#board-ctn');
    var boardTop = boardCtn.offset().top;

    window.tocbot.init(Object.assign({
      tocSelector     : '#toc-body',
      contentSelector : '.markdown-body',
      linkClass       : 'tocbot-link',
      activeLinkClass : 'tocbot-active-link',
      listClass       : 'tocbot-list',
      isCollapsedClass: 'tocbot-is-collapsed',
      collapsibleClass: 'tocbot-is-collapsible',
      scrollSmooth    : true,
      includeTitleTags: true,
      headingsOffset  : -boardTop,
    }, CONFIG.toc));
    if (toc.find('.toc-list-item').length > 0) {
      toc.css('visibility', 'visible');
    }

    Fluid.events.registerRefreshCallback(function() {
      if ('tocbot' in window) {
        tocbot.refresh();
        var toc = jQuery('#toc');
        if (toc.length === 0 || !tocbot) {
          return;
        }
        if (toc.find('.toc-list-item').length > 0) {
          toc.css('visibility', 'visible');
        }
      }
    });
  });
</script>


  <script src=https://lib.baomitu.com/clipboard.js/2.0.11/clipboard.min.js></script>

  <script>Fluid.plugins.codeWidget();</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/anchor-js/4.3.1/anchor.min.js', function() {
    window.anchors.options = {
      placement: CONFIG.anchorjs.placement,
      visible  : CONFIG.anchorjs.visible
    };
    if (CONFIG.anchorjs.icon) {
      window.anchors.options.icon = CONFIG.anchorjs.icon;
    }
    var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
    var res = [];
    for (var item of el) {
      res.push('.markdown-body > ' + item.trim());
    }
    if (CONFIG.anchorjs.placement === 'left') {
      window.anchors.options.class = 'anchorjs-link-left';
    }
    window.anchors.add(res.join(', '));

    Fluid.events.registerRefreshCallback(function() {
      if ('anchors' in window) {
        anchors.removeAll();
        var el = (CONFIG.anchorjs.element || 'h1,h2,h3,h4,h5,h6').split(',');
        var res = [];
        for (var item of el) {
          res.push('.markdown-body > ' + item.trim());
        }
        if (CONFIG.anchorjs.placement === 'left') {
          anchors.options.class = 'anchorjs-link-left';
        }
        anchors.add(res.join(', '));
      }
    });
  });
</script>


  
<script>
  Fluid.utils.createScript('https://lib.baomitu.com/fancybox/3.5.7/jquery.fancybox.min.js', function() {
    Fluid.plugins.fancyBox();
  });
</script>


  <script>Fluid.plugins.imageCaption();</script>

  <script  src="/blog/js/local-search.js" ></script>

  <script defer src="/blog/js/leancloud.js" ></script>




    
<script src="https://cdn.jsdelivr.net/npm/aplayer@1.10.1/dist/APlayer.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/meting@2/dist/Meting.min.js"></script>



<!-- 主题的启动项，将它保持在最底部 -->
<!-- the boot of the theme, keep it at the bottom -->
<script  src="/blog/js/boot.js" ></script>


  

  <noscript>
    <div class="noscript-warning">博客在允许 JavaScript 运行的环境下浏览效果更佳</div>
  </noscript>
</body>
</html>
